From c9e13806267f7fd3351d52a19cc6db5fa2985ca9 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Fri, 2 Nov 2018 12:41:45 +0100 Subject: [PATCH] r-nloptr: fix build by adding pkgconfig --- pkgs/development/r-modules/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/development/r-modules/default.nix b/pkgs/development/r-modules/default.nix index 56c707c6fa76..f40c0fcb5592 100644 --- a/pkgs/development/r-modules/default.nix +++ b/pkgs/development/r-modules/default.nix @@ -281,7 +281,7 @@ let mvabund = [ pkgs.gsl_1 ]; mwaved = [ pkgs.fftw.dev ]; ncdf4 = [ pkgs.netcdf ]; - nloptr = [ pkgs.nlopt ]; + nloptr = [ pkgs.nlopt pkgs.pkgconfig ]; odbc = [ pkgs.unixODBC ]; outbreaker = [ pkgs.gsl_1 ]; pander = [ pkgs.pandoc pkgs.which ]; @@ -855,10 +855,9 @@ let }); nloptr = old.nloptr.overrideDerivation (attrs: { - configureFlags = [ - "--with-nlopt-cflags=-I${pkgs.nlopt}/include" - "--with-nlopt-libs='-L${pkgs.nlopt}/lib -lnlopt_cxx -lm'" - ]; + # Drop bundled nlopt source code. Probably unnecessary, but I want to be + # sure we're using the system library, not this one. + preConfigure = "rm -r src/nlopt_src"; }); V8 = old.V8.overrideDerivation (attrs: {