about summary refs log blame commit diff
path: root/tests/parallel.nix
blob: 23f142059f58c74b42b9b547465aac56a92801c4 (plain) (tree)
1
2
3
4
5
6
7
8
9
                





                                      
                                         







                        
{sleepTime ? 3}:

with import ./config.nix;

let

  mkDrv = text: inputs: mkDerivation {
    name = "parallel";
    builder = ./parallel.builder.sh;
    inherit text inputs shared sleepTime;
  };

  a = mkDrv "a" [];
  b = mkDrv "b" [a];
  c = mkDrv "c" [a];
  d = mkDrv "d" [a];
  e = mkDrv "e" [b c d];

in e