From 5eabb050bee11c0d589f17b747aaa9846e707a6f Mon Sep 17 00:00:00 2001 From: idontgetoutmuch Date: Mon, 15 Feb 2021 02:08:02 +0000 Subject: [PATCH] R: fix dylib install_name (#113002) Co-authored-by: zseri Co-authored-by: Sandro --- pkgs/applications/science/math/R/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/science/math/R/default.nix b/pkgs/applications/science/math/R/default.nix index 7cbff99bf474..e41dbb546ea4 100644 --- a/pkgs/applications/science/math/R/default.nix +++ b/pkgs/applications/science/math/R/default.nix @@ -33,7 +33,10 @@ stdenv.mkDerivation rec { ]; prePatch = lib.optionalString stdenv.isDarwin '' - substituteInPlace configure --replace "-install_name libR.dylib" "-install_name $out/lib/R/lib/libR.dylib" + substituteInPlace configure \ + --replace "-install_name libRblas.dylib" "-install_name $out/lib/R/lib/libRblas.dylib" \ + --replace "-install_name libRlapack.dylib" "-install_name $out/lib/R/lib/libRlapack.dylib" \ + --replace "-install_name libR.dylib" "-install_name $out/lib/R/lib/libR.dylib" ''; dontDisableStatic = static;