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