1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-07 10:11:47 +02:00

rename run to shell in tests

This commit is contained in:
Matthew Kenigsberg 2020-04-29 15:37:21 -06:00
parent 5d8504b978
commit f459ca547f
4 changed files with 29 additions and 29 deletions

17
tests/shell-hello.nix Normal file
View file

@ -0,0 +1,17 @@
with import ./config.nix;
{
hello = mkDerivation {
name = "hello";
buildCommand =
''
mkdir -p $out/bin
cat > $out/bin/hello <<EOF
#! ${shell}
who=\$1
echo "Hello \''${who:-World} from $out/bin/hello"
EOF
chmod +x $out/bin/hello
'';
};
}