Updated customisable Nix expression

svn path=/nixpkgs/trunk/; revision=11757
This commit is contained in:
Michael Raskin 2008-05-06 07:03:09 +00:00
parent 2e1be8618b
commit 9b2cc890eb
1 changed files with 8 additions and 1 deletions

View File

@ -10,6 +10,8 @@
, docbook5_xsl ? null, libxslt ? null , docbook5_xsl ? null, libxslt ? null
, docbook5 ? null, docbook_xml_dtd_43 ? null , docbook5 ? null, docbook_xml_dtd_43 ? null
, configureFlags ? [] , configureFlags ? []
, lib
, enableScripts ? []
}: }:
stdenv.mkDerivation { stdenv.mkDerivation {
@ -30,7 +32,12 @@ stdenv.mkDerivation {
++ (if w3m != null then [w3m] else []) ++ (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 = [" configureFlags = ["
--with-store-dir=${storeDir} --localstatedir=${stateDir} --with-store-dir=${storeDir} --localstatedir=${stateDir}