2010-11-17 16:30:07 +01:00
|
|
|
{ version }:
|
|
|
|
|
|
|
|
with import ./config.nix;
|
|
|
|
|
|
|
|
mkDerivation {
|
|
|
|
name = "foo-${toString version}";
|
|
|
|
builder = builtins.toFile "builder.sh"
|
|
|
|
''
|
|
|
|
mkdir $out
|
|
|
|
seq 1 1000000 > $out/foo
|
|
|
|
${if version == 2 then ''
|
2010-11-17 18:32:25 +01:00
|
|
|
seq 1000000 1010000 >> $out/foo
|
2010-11-17 16:30:07 +01:00
|
|
|
'' else ""}
|
|
|
|
'';
|
|
|
|
}
|