Skip to content

Commit

Permalink
r-nloptr: fix build by adding pkgconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
peti committed Nov 2, 2018
1 parent 9f9fc7a commit c9e1380
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pkgs/development/r-modules/default.nix
Expand Up @@ -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 ];
Expand Down Expand Up @@ -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: {
Expand Down

0 comments on commit c9e1380

Please sign in to comment.