nixpkgs/pkgs/top-level/template-composing+config.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

23 lines
626 B
Nix

args : with args; let localDefs = builderDefs (args // rec {
src = /* put a fetchurl here */
(abort "Specify source");
useConfig = true;
reqsList = [
["true" ]
["false"]
];
/* List consisiting of an even number of strings; "key" "value" */
configFlags = [
];
}) 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 "Check phases") doMakeInstall doForceShare doPropagate]);
meta = {
description = "
${(abort "Specify description")}
";
};
}