2009-03-17 17:11:55 +00:00
|
|
|
with import ./config.nix;
|
|
|
|
|
2024-03-30 00:29:44 +00:00
|
|
|
{
|
|
|
|
environ = mkDerivation {
|
|
|
|
name = "gc-runtime-environ";
|
|
|
|
buildCommand = "mkdir $out; echo environ > $out/environ";
|
|
|
|
};
|
2009-03-17 17:11:55 +00:00
|
|
|
|
2024-03-30 00:29:44 +00:00
|
|
|
open = mkDerivation {
|
|
|
|
name = "gc-runtime-open";
|
|
|
|
buildCommand = "mkdir $out; echo open > $out/open";
|
|
|
|
};
|
2009-03-17 17:11:55 +00:00
|
|
|
|
2024-03-30 00:29:44 +00:00
|
|
|
program = mkDerivation {
|
|
|
|
name = "gc-runtime-program";
|
|
|
|
builder =
|
|
|
|
# Test inline source file definitions.
|
|
|
|
builtins.toFile "builder.sh" ''
|
|
|
|
mkdir $out
|
|
|
|
|
|
|
|
cat > $out/program <<EOF
|
|
|
|
#! ${shell}
|
|
|
|
sleep 10000 < \$1
|
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod +x $out/program
|
|
|
|
'';
|
|
|
|
};
|
2009-03-17 17:11:55 +00:00
|
|
|
}
|