forked from mirrors/nixpkgs
Merge pull request #35653 from mnacamura/r-juniperkernel-darwin
rPackages.JuniperKernel: fix darwin build
This commit is contained in:
commit
3e48f1ee09
|
@ -411,6 +411,7 @@ let
|
|||
fftw = [ pkgs.pkgconfig ];
|
||||
geoCount = [ pkgs.pkgconfig ];
|
||||
gdtools = [ pkgs.pkgconfig ];
|
||||
JuniperKernel = lib.optionals stdenv.isDarwin [ pkgs.binutils.bintools ];
|
||||
kza = [ pkgs.pkgconfig ];
|
||||
magick = [ pkgs.pkgconfig ];
|
||||
mwaved = [ pkgs.pkgconfig ];
|
||||
|
@ -760,6 +761,17 @@ let
|
|||
'';
|
||||
});
|
||||
|
||||
JuniperKernel = old.JuniperKernel.overrideDerivation (attrs: {
|
||||
postPatch = ''
|
||||
for file in {R,src}/*.R; do
|
||||
sed -i 's#system("which \(otool\|install_name_tool\)"[^)]*)#"${pkgs.binutils.bintools}/bin/\1"#g' $file
|
||||
done
|
||||
'';
|
||||
preConfigure = ''
|
||||
patchShebangs configure
|
||||
'';
|
||||
});
|
||||
|
||||
Mposterior = old.Mposterior.overrideDerivation (attrs: {
|
||||
PKG_LIBS = "-L${pkgs.openblasCompat}/lib -lopenblas";
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue