From 9b2cc890ebfba7712c297968f04f1f0ecc8a54a1 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Tue, 6 May 2008 07:03:09 +0000 Subject: [PATCH] Updated customisable Nix expression svn path=/nixpkgs/trunk/; revision=11757 --- pkgs/tools/package-management/nix/custom.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/package-management/nix/custom.nix b/pkgs/tools/package-management/nix/custom.nix index 2cff9f53d87..fdbfb2d7bec 100644 --- a/pkgs/tools/package-management/nix/custom.nix +++ b/pkgs/tools/package-management/nix/custom.nix @@ -10,6 +10,8 @@ , docbook5_xsl ? null, libxslt ? null , docbook5 ? null, docbook_xml_dtd_43 ? null , configureFlags ? [] +, lib +, enableScripts ? [] }: stdenv.mkDerivation { @@ -30,7 +32,12 @@ stdenv.mkDerivation { ++ (if w3m != null then [w3m] else []) ; - inherit preConfigure; + preConfigure = + (lib.concatMapStrings (script: ''sed -e '/bin_SCRIPTS/a${script} \\' -i scripts/Makefile.am + '') enableScripts) + + preConfigure + + "\n./bootstrap.sh" + ; configureFlags = [" --with-store-dir=${storeDir} --localstatedir=${stateDir}