2009-03-17 18:11:55 +01:00
|
|
|
with import ./config.nix;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
input1 = mkDerivation {
|
|
|
|
name = "build-hook-input-1";
|
2020-05-12 13:49:55 +02:00
|
|
|
buildCommand = "mkdir $out; echo FOO > $out/foo";
|
2017-05-02 15:35:35 +02:00
|
|
|
requiredSystemFeatures = ["foo"];
|
2009-03-17 18:11:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
input2 = mkDerivation {
|
|
|
|
name = "build-hook-input-2";
|
2020-05-12 13:49:55 +02:00
|
|
|
buildCommand = "mkdir $out; echo BAR > $out/bar";
|
2009-03-17 18:11:55 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
mkDerivation {
|
|
|
|
name = "build-hook";
|
|
|
|
builder = ./dependencies.builder0.sh;
|
2013-10-17 11:18:37 +02:00
|
|
|
input1 = " " + input1 + "/.";
|
|
|
|
input2 = " ${input2}/.";
|
2009-03-17 18:11:55 +01:00
|
|
|
}
|