From 71fe97475aecbf1073721c7e3397bad671c3c442 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Thu, 20 Mar 2008 15:56:17 +0000 Subject: [PATCH] Updated template for composing builder svn path=/nixpkgs/trunk/; revision=11237 --- pkgs/top-level/template-composing-builder.nix | 29 +++++++++---------- 1 file changed, 13 insertions(+), 16 deletions(-) diff --git a/pkgs/top-level/template-composing-builder.nix b/pkgs/top-level/template-composing-builder.nix index 7725d7986fd..14ef550e950 100644 --- a/pkgs/top-level/template-composing-builder.nix +++ b/pkgs/top-level/template-composing-builder.nix @@ -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"}"; + }; }