3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #35653 from mnacamura/r-juniperkernel-darwin

rPackages.JuniperKernel: fix darwin build
This commit is contained in:
Peter Simons 2018-02-26 20:15:52 +01:00 committed by GitHub
commit 3e48f1ee09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";
});