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
37
pkgs/applications/emulators/commanderx16/run.nix
Normal file
37
pkgs/applications/emulators/commanderx16/run.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ runtimeShell
|
||||
, symlinkJoin
|
||||
, writeTextFile
|
||||
}:
|
||||
|
||||
{ emulator, rom }:
|
||||
|
||||
assert emulator.version == rom.version;
|
||||
|
||||
let
|
||||
runScript = writeTextFile {
|
||||
name = "run-x16";
|
||||
text = ''
|
||||
#!${runtimeShell}
|
||||
|
||||
defaultRom="${rom}/share/x16-rom/rom.bin"
|
||||
|
||||
exec "${emulator}/bin/x16emu" -rom $defaultRom "$@"
|
||||
'';
|
||||
executable = true;
|
||||
destination = "/bin/run-x16";
|
||||
};
|
||||
in
|
||||
symlinkJoin {
|
||||
name = "run-x16-${emulator.version}";
|
||||
|
||||
paths = [
|
||||
emulator
|
||||
rom
|
||||
runScript
|
||||
];
|
||||
}
|
||||
# TODO [ AndersonTorres ]:
|
||||
|
||||
# 1. Parse the command line in order to allow the user to set an optional
|
||||
# rom-file
|
||||
# 2. generate runScript based on symlinkJoin (maybe a postBuild?)
|
||||
Loading…
Add table
Add a link
Reference in a new issue