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