2006-09-01 14:07:31 +02:00
|
|
|
let {
|
|
|
|
|
|
|
|
# Test inline source file definitions.
|
2006-10-03 16:55:54 +02:00
|
|
|
builder = builtins.toFile "builder.sh" "
|
2006-09-01 14:07:31 +02:00
|
|
|
mkdir $out
|
|
|
|
|
|
|
|
cat > $out/program <<EOF
|
2007-02-21 15:00:46 +01:00
|
|
|
#! @shell@
|
2006-09-01 14:07:31 +02:00
|
|
|
sleep 10000
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod +x $out/program
|
|
|
|
";
|
|
|
|
|
|
|
|
body = derivation {
|
|
|
|
name = "gc-runtime";
|
|
|
|
system = "@system@";
|
|
|
|
builder = "@shell@";
|
|
|
|
args = ["-e" "-x" builder];
|
|
|
|
PATH = "@testPath@";
|
|
|
|
};
|
|
|
|
|
2006-07-21 14:46:54 +02:00
|
|
|
}
|