Updated template for composing builder
svn path=/nixpkgs/trunk/; revision=11237
This commit is contained in:
parent
5f2bcdbdb6
commit
71fe97475a
|
@ -1,18 +1,15 @@
|
||||||
args : with args; with builderDefs null;
|
args : with args;
|
||||||
let localDefs = builderDefs (rec {
|
rec {
|
||||||
src = /* put a fetchurl here */
|
src = /* Here a fetchurl expression goes */;
|
||||||
|
|
||||||
buildInputs = [];
|
buildInputs = [];
|
||||||
configureFlags = [];
|
configureFlags = [];
|
||||||
}) args null; /* null is a terminator for sumArgs */
|
|
||||||
in with localDefs;
|
/* doConfigure should be specified separately */
|
||||||
stdenv.mkDerivation rec {
|
phaseNames = ["doMakeInstall"];
|
||||||
name = "${abort "Specify name"}-"+version;
|
|
||||||
builder = writeScript (name + "-builder")
|
name = "${abort "Specify name"}" + version;
|
||||||
(textClosure localDefs
|
|
||||||
[(abort "Specify phases - defined here or in builderDefs") doForceShare doPropagate]);
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "${abort "Write a description"}";
|
description = "${abort "Specify description"}";
|
||||||
inherit src;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue