Fix nlopt build.

(cherry picked from commit 6c8fbed541188b04998ffc92ef960b6970f1f04e)
This commit is contained in:
Rob Vermaas 2016-04-27 09:22:45 +00:00
parent d76982e181
commit 66a224c99d
1 changed files with 4 additions and 0 deletions

View File

@ -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";