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