2009-03-17 18:11:55 +01:00
|
|
|
with import ./config.nix;
|
|
|
|
|
2024-03-30 01:29:44 +01:00
|
|
|
{
|
|
|
|
environ = mkDerivation {
|
|
|
|
name = "gc-runtime-environ";
|
|
|
|
buildCommand = "mkdir $out; echo environ > $out/environ";
|
|
|
|
};
|
2009-03-17 18:11:55 +01:00
|
|
|
|
2024-03-30 01:29:44 +01:00
|
|
|
open = mkDerivation {
|
|
|
|
name = "gc-runtime-open";
|
|
|
|
buildCommand = "mkdir $out; echo open > $out/open";
|
|
|
|
};
|
2009-03-17 18:11:55 +01:00
|
|
|
|
2024-03-30 01:29:44 +01: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 18:11:55 +01:00
|
|
|
}
|