diff options
author | Rob Vermaas <rob.vermaas@gmail.com> | 2016-04-27 09:22:45 +0000 |
---|---|---|
committer | Rob Vermaas <rob.vermaas@gmail.com> | 2016-04-28 09:16:01 +0000 |
commit | 66a224c99dc1ffcb784d208a1d30f4660e3dd405 (patch) | |
tree | 693c3e7a4ea209c9dd92024afde4013bb2ad50ec /pkgs/development/libraries/nlopt | |
parent | d76982e18159f02d80cca5ef4fcb14b0dc70f42b (diff) | |
download | nixlib-66a224c99dc1ffcb784d208a1d30f4660e3dd405.tar nixlib-66a224c99dc1ffcb784d208a1d30f4660e3dd405.tar.gz nixlib-66a224c99dc1ffcb784d208a1d30f4660e3dd405.tar.bz2 nixlib-66a224c99dc1ffcb784d208a1d30f4660e3dd405.tar.lz nixlib-66a224c99dc1ffcb784d208a1d30f4660e3dd405.tar.xz nixlib-66a224c99dc1ffcb784d208a1d30f4660e3dd405.tar.zst nixlib-66a224c99dc1ffcb784d208a1d30f4660e3dd405.zip |
Fix nlopt build.
(cherry picked from commit 6c8fbed541188b04998ffc92ef960b6970f1f04e)
Diffstat (limited to 'pkgs/development/libraries/nlopt')
-rw-r--r-- | pkgs/development/libraries/nlopt/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/libraries/nlopt/default.nix b/pkgs/development/libraries/nlopt/default.nix index 080f09dfdf45..ddf47cf31d8e 100644 --- a/pkgs/development/libraries/nlopt/default.nix +++ b/pkgs/development/libraries/nlopt/default.nix @@ -16,6 +16,10 @@ stdenv.mkDerivation rec { "M_INSTALL_DIR=$(out)/${octave.sitePath}/m " + "OCT_INSTALL_DIR=$(out)/${octave.sitePath}/oct "); + preConfigure = '' + find octave -name '*.cc' | xargs sed -i 's|Octave_map|octave_map|g' + ''; + meta = { homepage = "http://ab-initio.mit.edu/nlopt/"; description = "Free open-source library for nonlinear optimization"; |