3
0
Fork 0
forked from mirrors/nixpkgs

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

View file

@ -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}