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
31
pkgs/games/npush/run.nix
Normal file
31
pkgs/games/npush/run.nix
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
{ runtimeShell
|
||||
, symlinkJoin
|
||||
, writeShellScriptBin
|
||||
, npush
|
||||
}:
|
||||
|
||||
let
|
||||
runScript = writeShellScriptBin "run-npush" ''
|
||||
set -euo pipefail
|
||||
CWD=$(pwd)
|
||||
|
||||
if [ -d "./levels" ]; then
|
||||
echo "Directory ./levels found; skipping levelset copy"
|
||||
else
|
||||
echo "Directory ./levels not found; copying the official levelset to the current directory"
|
||||
mkdir -p ./levels
|
||||
cp ${npush}/share/npush/levels/* levels/
|
||||
chmod 644 levels/*
|
||||
fi
|
||||
echo "Now calling npush"
|
||||
exec "${npush}/bin/npush"
|
||||
'';
|
||||
in
|
||||
symlinkJoin {
|
||||
name = "run-npush-${npush.version}";
|
||||
|
||||
paths = [
|
||||
npush
|
||||
runScript
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue