Updated template for composing builder

svn path=/nixpkgs/trunk/; revision=11237
This commit is contained in:
Michael Raskin 2008-03-20 15:56:17 +00:00
parent 5f2bcdbdb6
commit 71fe97475a
1 changed files with 13 additions and 16 deletions

View File

@ -1,18 +1,15 @@
args : with args; with builderDefs null;
let localDefs = builderDefs (rec {
src = /* put a fetchurl here */
args : with args;
rec {
src = /* Here a fetchurl expression goes */;
buildInputs = [];
configureFlags = [];
}) args 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"}";
inherit src;
};
buildInputs = [];
configureFlags = [];
/* doConfigure should be specified separately */
phaseNames = ["doMakeInstall"];
name = "${abort "Specify name"}" + version;
meta = {
description = "${abort "Specify description"}";
};
}