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:
parent
5d8504b978
commit
f459ca547f
4 changed files with 29 additions and 29 deletions
17
tests/shell-hello.nix
Normal file
17
tests/shell-hello.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue