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
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2012-01-03 02:51:38 +01:00
|
|
|
meta.description = "Random test package";
|
2009-03-17 17:33:48 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|