Merge pull request #72338 from nkpart/nkpart/fix-rPackages-ModelMetrics
rPackages.ModelMetrics: fix darwin build
This commit is contained in:
commit
6bd0704542
1 changed files with 6 additions and 0 deletions
|
@ -277,6 +277,7 @@ let
|
|||
KFKSDS = [ pkgs.gsl_1 ];
|
||||
kza = [ pkgs.fftw.dev ];
|
||||
magick = [ pkgs.imagemagick.dev ];
|
||||
ModelMetrics = lib.optional stdenv.isDarwin pkgs.llvmPackages.openmp;
|
||||
mvabund = [ pkgs.gsl_1 ];
|
||||
mwaved = [ pkgs.fftw.dev ];
|
||||
ncdf4 = [ pkgs.netcdf ];
|
||||
|
@ -735,6 +736,11 @@ let
|
|||
+ lib.optionalString stdenv.isDarwin " -fopenmp";
|
||||
});
|
||||
|
||||
ModelMetrics = old.ModelMetrics.overrideDerivation (attrs: {
|
||||
NIX_CFLAGS_COMPILE = attrs.NIX_CFLAGS_COMPILE
|
||||
+ lib.optionalString stdenv.isDarwin " -fopenmp";
|
||||
});
|
||||
|
||||
rpf = old.rpf.overrideDerivation (attrs: {
|
||||
patchPhase = "patchShebangs configure";
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue