uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
36
pkgs/development/embedded/arduino/arduino-core/chrootenv.nix
Normal file
36
pkgs/development/embedded/arduino/arduino-core/chrootenv.nix
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{ lib, buildFHSUserEnv, arduino-core-unwrapped, withGui ? false, withTeensyduino ? false }:
|
||||
let
|
||||
arduino-unwrapped = arduino-core-unwrapped.override { inherit withGui withTeensyduino; };
|
||||
in
|
||||
buildFHSUserEnv {
|
||||
name = "arduino";
|
||||
|
||||
targetPkgs =
|
||||
pkgs: (with pkgs; [
|
||||
ncurses
|
||||
arduino-unwrapped
|
||||
zlib
|
||||
(python3.withPackages (p: with p; [
|
||||
pyserial
|
||||
]))
|
||||
]);
|
||||
multiPkgs = null;
|
||||
|
||||
extraInstallCommands = ''
|
||||
${lib.optionalString withGui ''
|
||||
# desktop file
|
||||
mkdir -p $out/share/applications
|
||||
cp ${arduino-core-unwrapped.src}/build/linux/dist/desktop.template $out/share/applications/arduino.desktop
|
||||
substituteInPlace $out/share/applications/arduino.desktop \
|
||||
--replace '<BINARY_LOCATION>' "$out/bin/arduino" \
|
||||
--replace '<ICON_NAME>' "$out/share/arduino/icons/128x128/apps/arduino.png"
|
||||
# icon file
|
||||
mkdir -p $out/share/arduino
|
||||
cp -r ${arduino-core-unwrapped.src}/build/shared/icons $out/share/arduino
|
||||
''}
|
||||
'';
|
||||
|
||||
runScript = "arduino";
|
||||
|
||||
meta = arduino-core-unwrapped.meta;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue