mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
Making teeworlds executables accept parameters (to configure a teeworlds server for example)
svn path=/nixpkgs/trunk/; revision=19768
This commit is contained in:
parent
a066167a9e
commit
90962dc4cb
@ -55,7 +55,7 @@ stdenv.mkDerivation rec {
|
||||
mv -v "$out/bin/$program" "$out/bin/.wrapped-$program"
|
||||
cat > "$out/bin/$program" <<EOF
|
||||
#!/bin/sh
|
||||
cd "$out/share/${name}" && exec "$out/bin/.wrapped-$program"
|
||||
cd "$out/share/${name}" && exec "$out/bin/.wrapped-$program" "\$@"
|
||||
EOF
|
||||
chmod -v +x "$out/bin/$program"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user