mirror of
https://github.com/NixOS/nix
synced 2025-07-08 02:43:54 +02:00
tests: add a test for command line ordering
This commit is contained in:
parent
5ed1884875
commit
1fb43d1eee
2 changed files with 24 additions and 0 deletions
|
@ -23,4 +23,20 @@ with import ./config.nix;
|
|||
chmod +x $dev/bin/hello2
|
||||
'';
|
||||
};
|
||||
|
||||
salve-mundi = mkDerivation {
|
||||
name = "salve-mundi";
|
||||
outputs = [ "out" ];
|
||||
meta.outputsToInstall = [ "out" ];
|
||||
buildCommand =
|
||||
''
|
||||
mkdir -p $out/bin
|
||||
|
||||
cat > $out/bin/hello <<EOF
|
||||
#! ${shell}
|
||||
echo "Salve Mundi from $out/bin/hello"
|
||||
EOF
|
||||
chmod +x $out/bin/hello
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue