3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/top-level/template-composing-builder.nix
Yury G. Kudryashov b95a97e2d4 Minor change to composing templates.
svn path=/nixpkgs/branches/stdenv-updates/; revision=10377
2008-01-29 13:15:56 +00:00

20 lines
533 B
Nix

args : with args; with builderDefs {src="";} null;
let localDefs = builderDefs (rec {
src = /* put a fetchurl here */
buildInputs = [];
configureFlags = [];
}) null; /* null is a terminator for sumArgs */
in with localDefs;
stdenv.mkDerivation rec {
name = "${abort "Specify name"}-"+version;
builder = writeScript (name + "-builder")
(textClosure localDefs
[(abort "Specify phases - defined here or in builderDefs") doForceShare doPropagate]);
meta = {
description = "
${abort "Write a description"}
";
};
}