Minor change to composing templates.

svn path=/nixpkgs/branches/stdenv-updates/; revision=10377
This commit is contained in:
Yury G. Kudryashov 2008-01-29 13:15:56 +00:00
parent 433f7fed54
commit b95a97e2d4
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
args : with args; let localDefs = builderDefs (args // {
args : with args; let localDefs = builderDefs (args // rec {
src = /* put a fetchurl here */
(abort "Specify source");
useConfig = true;

View file

@ -1,10 +1,10 @@
args : with args; with builderDefs {src="";} null;
let localDefs = builderDefs {
let localDefs = builderDefs (rec {
src = /* put a fetchurl here */
buildInputs = [];
configureFlags = [];
} null; /* null is a terminator for sumArgs */
}) null; /* null is a terminator for sumArgs */
in with localDefs;
stdenv.mkDerivation rec {
name = "${abort "Specify name"}-"+version;