From 00a52ef677eb7098c42c6deb81d11bf9e5740e20 Mon Sep 17 00:00:00 2001 From: Sandro Date: Sat, 20 Nov 2021 21:10:28 +0100 Subject: [PATCH] R: manually fix things after patches got applied This prevents conflicts in case a patch changes the same line --- pkgs/applications/science/math/R/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/science/math/R/default.nix b/pkgs/applications/science/math/R/default.nix index 815d108ce412..d08078c356e1 100644 --- a/pkgs/applications/science/math/R/default.nix +++ b/pkgs/applications/science/math/R/default.nix @@ -35,7 +35,7 @@ stdenv.mkDerivation rec { # Test of the examples for package 'tcltk' fails in Darwin sandbox. See: # https://github.com/NixOS/nixpkgs/issues/146131 - prePatch = lib.optionalString stdenv.isDarwin '' + postPatch = lib.optionalString stdenv.isDarwin '' 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" \