Updated customisable Nix expression
svn path=/nixpkgs/trunk/; revision=11757
This commit is contained in:
parent
2e1be8618b
commit
9b2cc890eb
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue