2024-11-07 14:46:37 +02:00
|
|
|
with import "${builtins.getEnv "_NIX_TEST_BUILD_DIR"}/config.nix";
|
2011-06-30 18:19:13 +03:00
|
|
|
|
2017-01-19 15:17:57 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
infiniteLoop = mkDerivation {
|
|
|
|
name = "timeout";
|
|
|
|
buildCommand = ''
|
2017-04-05 16:13:07 +03:00
|
|
|
touch $out
|
2017-07-30 14:27:57 +03:00
|
|
|
echo "'timeout' builder entering an infinite loop"
|
2017-01-19 15:17:57 +02:00
|
|
|
while true ; do echo -n .; done
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
silent = mkDerivation {
|
|
|
|
name = "silent";
|
|
|
|
buildCommand = ''
|
2017-04-05 16:13:07 +03:00
|
|
|
touch $out
|
2017-01-19 15:17:57 +02:00
|
|
|
sleep 60
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2017-01-19 17:58:39 +02:00
|
|
|
closeLog = mkDerivation {
|
|
|
|
name = "silent";
|
|
|
|
buildCommand = ''
|
2017-04-05 16:13:07 +03:00
|
|
|
touch $out
|
2017-01-19 17:58:39 +02:00
|
|
|
exec > /dev/null 2>&1
|
|
|
|
sleep 1000000000
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2011-06-30 18:19:13 +03:00
|
|
|
}
|