r-nloptr: fix build by adding pkgconfig

This commit is contained in:
Peter Simons 2018-11-02 12:41:45 +01:00
parent 9f9fc7ae15
commit c9e1380626

View File

@ -281,7 +281,7 @@ let
mvabund = [ pkgs.gsl_1 ]; mvabund = [ pkgs.gsl_1 ];
mwaved = [ pkgs.fftw.dev ]; mwaved = [ pkgs.fftw.dev ];
ncdf4 = [ pkgs.netcdf ]; ncdf4 = [ pkgs.netcdf ];
nloptr = [ pkgs.nlopt ]; nloptr = [ pkgs.nlopt pkgs.pkgconfig ];
odbc = [ pkgs.unixODBC ]; odbc = [ pkgs.unixODBC ];
outbreaker = [ pkgs.gsl_1 ]; outbreaker = [ pkgs.gsl_1 ];
pander = [ pkgs.pandoc pkgs.which ]; pander = [ pkgs.pandoc pkgs.which ];
@ -855,10 +855,9 @@ let
}); });
nloptr = old.nloptr.overrideDerivation (attrs: { nloptr = old.nloptr.overrideDerivation (attrs: {
configureFlags = [ # Drop bundled nlopt source code. Probably unnecessary, but I want to be
"--with-nlopt-cflags=-I${pkgs.nlopt}/include" # sure we're using the system library, not this one.
"--with-nlopt-libs='-L${pkgs.nlopt}/lib -lnlopt_cxx -lm'" preConfigure = "rm -r src/nlopt_src";
];
}); });
V8 = old.V8.overrideDerivation (attrs: { V8 = old.V8.overrideDerivation (attrs: {