diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2018-07-25 17:44:21 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2018-08-03 17:06:03 -0400 |
commit | db965063b346a33cc3f6363a40cbde2658d2cd23 (patch) | |
tree | f6c76998d8a18f09d782000922a0429cbaacf8b9 /pkgs/development/libraries/nlopt | |
parent | 85a9913edd50b7ea9b4dfbaedd5d40a739b97d3e (diff) | |
download | nixlib-db965063b346a33cc3f6363a40cbde2658d2cd23.tar nixlib-db965063b346a33cc3f6363a40cbde2658d2cd23.tar.gz nixlib-db965063b346a33cc3f6363a40cbde2658d2cd23.tar.bz2 nixlib-db965063b346a33cc3f6363a40cbde2658d2cd23.tar.lz nixlib-db965063b346a33cc3f6363a40cbde2658d2cd23.tar.xz nixlib-db965063b346a33cc3f6363a40cbde2658d2cd23.tar.zst nixlib-db965063b346a33cc3f6363a40cbde2658d2cd23.zip |
treewide: Make configureFlags lists
Diffstat (limited to 'pkgs/development/libraries/nlopt')
-rw-r--r-- | pkgs/development/libraries/nlopt/default.nix | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/development/libraries/nlopt/default.nix b/pkgs/development/libraries/nlopt/default.nix index 3696578b8e04..904cdc6a3daa 100644 --- a/pkgs/development/libraries/nlopt/default.nix +++ b/pkgs/development/libraries/nlopt/default.nix @@ -10,11 +10,18 @@ stdenv.mkDerivation rec { buildInputs = [ octave ]; - configureFlags = "--with-cxx --enable-shared --with-pic --without-guile --without-python - --without-matlab " + - stdenv.lib.optionalString (octave != null) ("--with-octave " + - "M_INSTALL_DIR=$(out)/${octave.sitePath}/m " + - "OCT_INSTALL_DIR=$(out)/${octave.sitePath}/oct "); + configureFlags = [ + "--with-cxx" + "--enable-shared" + "--with-pic" + "--without-guile" + "--without-python" + "--without-matlab" + ] ++ stdenv.lib.optionals (octave != null) [ + "--with-octave" + "M_INSTALL_DIR=$(out)/${octave.sitePath}/m" + "OCT_INSTALL_DIR=$(out)/${octave.sitePath}/oct" + ]; meta = { homepage = http://ab-initio.mit.edu/nlopt/; |