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