mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 02:06:16 +02:00
d20c3011a0
suffix, e.g., `builtins.toFile "builder.sh" "..."'. * toFile: handle references to other files correctly.
23 lines
343 B
Nix
23 lines
343 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@";
|
|
};
|
|
|
|
}
|