about summary refs log blame commit diff
path: root/tests/hash-check.nix
blob: 4a8e9b8a8df9b5c3851d6f81a70dd6866d683f6b (plain) (tree)
1
2
3
4
5
6
7




                                  
                               




                                  
                               







                                                    
                                                   



                           
let {

  input1 = derivation {
    name = "dependencies-input-1";
    system = "i086-msdos";
    builder = "/bar/sh";
    args = ["-e" "-x" ./dummy];
  };

  input2 = derivation {
    name = "dependencies-input-2";
    system = "i086-msdos";
    builder = "/bar/sh";
    args = ["-e" "-x" ./dummy];
    outputHashMode = "recursive";
    outputHashAlgo = "md5";
    outputHash = "ffffffffffffffffffffffffffffffff";
  };

  body = derivation {
    name = "dependencies";
    system = "i086-msdos";
    builder = "/bar/sh";
    args = ["-e" "-x" (./dummy  + "/FOOBAR/../.")];
    input1 = input1 + "/.";
    inherit input2;
  };

}