2009-03-17 18:33:48 +02:00
|
|
|
with import ./config.nix;
|
|
|
|
|
|
|
|
let {
|
|
|
|
|
2020-05-12 14:49:55 +03:00
|
|
|
input0 = mkDerivation {
|
|
|
|
name = "dependencies-input-0";
|
|
|
|
buildCommand = "mkdir $out; echo foo > $out/bar";
|
|
|
|
};
|
|
|
|
|
2009-03-17 18:33:48 +02:00
|
|
|
input1 = mkDerivation {
|
|
|
|
name = "dependencies-input-1";
|
2020-05-12 14:49:55 +03:00
|
|
|
buildCommand = "mkdir $out; echo FOO > $out/foo";
|
2009-03-17 18:33:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
input2 = mkDerivation {
|
|
|
|
name = "dependencies-input-2";
|
2020-05-12 14:49:55 +03:00
|
|
|
buildCommand = ''
|
|
|
|
mkdir $out
|
|
|
|
echo BAR > $out/bar
|
|
|
|
echo ${input0} > $out/input0
|
|
|
|
'';
|
2009-03-17 18:33:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
body = mkDerivation {
|
2020-05-12 14:49:55 +03:00
|
|
|
name = "dependencies-top";
|
2013-10-17 02:12:43 +03:00
|
|
|
builder = ./dependencies.builder0.sh + "/FOOBAR/../.";
|
2009-03-17 18:33:48 +02:00
|
|
|
input1 = input1 + "/.";
|
2013-10-17 02:12:43 +03:00
|
|
|
input2 = "${input2}/.";
|
2019-07-11 21:23:03 +03:00
|
|
|
input1_drv = input1;
|
2012-01-03 03:51:38 +02:00
|
|
|
meta.description = "Random test package";
|
2009-03-17 18:33:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|