mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 06:42:28 +00:00
24 lines
344 B
Nix
24 lines
344 B
Nix
let {
|
|
|
|
# Test inline source file definitions.
|
|
builder = builtins.toFile "builder.sh" "
|
|
mkdir $out
|
|
|
|
cat > $out/program <<EOF
|
|
#! @shell@
|
|
sleep 10000
|
|
EOF
|
|
|
|
chmod +x $out/program
|
|
";
|
|
|
|
body = derivation {
|
|
name = "gc-runtime";
|
|
system = "@system@";
|
|
builder = "@shell@";
|
|
args = ["-e" "-x" builder];
|
|
PATH = "@testPath@";
|
|
};
|
|
|
|
}
|