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