1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-26 07:31:20 +00:00
nixpkgs/pkgs/top-level/template-composing-builder.nix
Michael Raskin 746d65bbdb Minor change to composing templates.
svn path=/nixpkgs/trunk/; revision=10294
2008-01-25 13:33:26 +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"}
";
};
}