2023-08-23 12:00:00 +00:00
|
|
|
{ hashInvalidator ? "" }:
|
2009-03-17 16:33:48 +00:00
|
|
|
with import ./config.nix;
|
|
|
|
|
|
|
|
let {
|
|
|
|
|
2020-05-12 11:49:55 +00:00
|
|
|
input0 = mkDerivation {
|
|
|
|
name = "dependencies-input-0";
|
|
|
|
buildCommand = "mkdir $out; echo foo > $out/bar";
|
|
|
|
};
|
|
|
|
|
2009-03-17 16:33:48 +00:00
|
|
|
input1 = mkDerivation {
|
|
|
|
name = "dependencies-input-1";
|
2020-05-12 11:49:55 +00:00
|
|
|
buildCommand = "mkdir $out; echo FOO > $out/foo";
|
2009-03-17 16:33:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
input2 = mkDerivation {
|
|
|
|
name = "dependencies-input-2";
|
2020-05-12 11:49:55 +00:00
|
|
|
buildCommand = ''
|
|
|
|
mkdir $out
|
|
|
|
echo BAR > $out/bar
|
|
|
|
echo ${input0} > $out/input0
|
|
|
|
'';
|
2009-03-17 16:33:48 +00:00
|
|
|
};
|
|
|
|
|
2023-08-23 12:00:00 +00:00
|
|
|
fod_input = mkDerivation {
|
|
|
|
name = "fod-input";
|
|
|
|
buildCommand = ''
|
|
|
|
echo ${hashInvalidator}
|
|
|
|
echo FOD > $out
|
|
|
|
'';
|
|
|
|
outputHashMode = "flat";
|
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHash = "1dq9p0hnm1y75q2x40fws5887bq1r840hzdxak0a9djbwvx0b16d";
|
|
|
|
};
|
|
|
|
|
2009-03-17 16:33:48 +00:00
|
|
|
body = mkDerivation {
|
2020-05-12 11:49:55 +00:00
|
|
|
name = "dependencies-top";
|
2013-10-16 23:12:43 +00:00
|
|
|
builder = ./dependencies.builder0.sh + "/FOOBAR/../.";
|
2009-03-17 16:33:48 +00:00
|
|
|
input1 = input1 + "/.";
|
2013-10-16 23:12:43 +00:00
|
|
|
input2 = "${input2}/.";
|
2019-07-11 18:23:03 +00:00
|
|
|
input1_drv = input1;
|
2022-01-18 15:54:53 +00:00
|
|
|
input2_drv = input2;
|
|
|
|
input0_drv = input0;
|
2023-08-23 12:00:00 +00:00
|
|
|
fod_input_drv = fod_input;
|
2012-01-03 01:51:38 +00:00
|
|
|
meta.description = "Random test package";
|
2009-03-17 16:33:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|