2008-01-22 17:56:53 +00:00
|
|
|
args : with args; with builderDefs {src="";} null;
|
2008-01-25 13:33:26 +00:00
|
|
|
let localDefs = builderDefs (rec {
|
2007-11-03 04:15:13 +00:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
|
|
|
|
buildInputs = [];
|
|
|
|
configureFlags = [];
|
2008-03-03 23:32:50 +00:00
|
|
|
}) args null; /* null is a terminator for sumArgs */
|
2008-01-18 12:36:56 +00:00
|
|
|
in with localDefs;
|
2007-11-03 04:15:13 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2008-01-18 12:36:56 +00:00
|
|
|
name = "${abort "Specify name"}-"+version;
|
2007-11-03 04:15:13 +00:00
|
|
|
builder = writeScript (name + "-builder")
|
2008-01-18 12:36:56 +00:00
|
|
|
(textClosure localDefs
|
|
|
|
[(abort "Specify phases - defined here or in builderDefs") doForceShare doPropagate]);
|
2007-11-03 04:15:13 +00:00
|
|
|
meta = {
|
|
|
|
description = "
|
|
|
|
${abort "Write a description"}
|
|
|
|
";
|
2008-03-02 18:49:31 +00:00
|
|
|
inherit src;
|
2007-11-03 04:15:13 +00:00
|
|
|
};
|
|
|
|
}
|