erlang: make `configureFlags` appending instead of overwriting
The erlang `generic-builder` accepts a lot of arguments that would affect the `configureFlags` passed to `mkDerivation`. Though all these arguments would be without any effect if additionally `configureFlags` is passed and not the empty list. This change should make it easier to "compose" arbitrary erlang overrides.
This commit is contained in:
parent
7596bb4739
commit
29ac9bedf0
|
@ -89,7 +89,8 @@ in stdenv.mkDerivation ({
|
|||
++ optional odbcSupport "--with-odbc=${unixODBC}"
|
||||
++ optional wxSupport "--enable-wx"
|
||||
++ optional withSystemd "--enable-systemd"
|
||||
++ optional stdenv.isDarwin "--enable-darwin-64bit";
|
||||
++ optional stdenv.isDarwin "--enable-darwin-64bit"
|
||||
++ configureFlags;
|
||||
|
||||
# install-docs will generate and install manpages and html docs
|
||||
# (PDFs are generated only when fop is available).
|
||||
|
@ -131,7 +132,6 @@ in stdenv.mkDerivation ({
|
|||
// optionalAttrs (postUnpack != "") { inherit postUnpack; }
|
||||
// optionalAttrs (patches != []) { inherit patches; }
|
||||
// optionalAttrs (patchPhase != "") { inherit patchPhase; }
|
||||
// optionalAttrs (configureFlags != []) { inherit configureFlags; }
|
||||
// optionalAttrs (configurePhase != "") { inherit configurePhase; }
|
||||
// optionalAttrs (preConfigure != "") { inherit preConfigure; }
|
||||
// optionalAttrs (postConfigure != "") { inherit postConfigure; }
|
||||
|
|
Loading…
Reference in New Issue