mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
3d38a49840
Hopefully this doesn't slow things down too much.
15 lines
288 B
Nix
15 lines
288 B
Nix
{ 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 ''
|
|
seq 1000000 1010000 >> $out/foo
|
|
'' else ""}
|
|
'';
|
|
}
|