Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 18 lines (16 sloc) 0.443 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
{ version }:

with import ./config.nix;

mkDerivation {
  name = "foo-${toString version}";
  builder = builtins.toFile "builder.sh"
    ''
mkdir $out
(for ((n = 1; n < 100000; n++)); do echo $n; done) > $out/foo
${if version != 1 then ''
(for ((n = 100000; n < 110000; n++)); do echo $n; done) >> $out/foo
'' else ""}
${if version == 3 then ''
echo foobar >> $out/foo
'' else ""}
'';
}
Something went wrong with that request. Please try again.