From 66a224c99dc1ffcb784d208a1d30f4660e3dd405 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Wed, 27 Apr 2016 09:22:45 +0000 Subject: [PATCH] Fix nlopt build. (cherry picked from commit 6c8fbed541188b04998ffc92ef960b6970f1f04e) --- pkgs/development/libraries/nlopt/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/nlopt/default.nix b/pkgs/development/libraries/nlopt/default.nix index 080f09dfdf4..ddf47cf31d8 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";