File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
pkgs/applications/science/math/R Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,10 @@ stdenv.mkDerivation (finalAttrs: {
101101 # The store path to "which" is baked into src/library/base/R/unix/system.unix.R,
102102 # but Nix cannot detect it as a run-time dependency because the installed file
103103 # is compiled and compressed, which hides the store path.
104- postFixup = "echo ${ which } > $out/nix-support/undetected-runtime-dependencies" ;
104+ postFixup = ''
105+ echo ${ which } > $out/nix-support/undetected-runtime-dependencies
106+ ${ lib . optionalString stdenv . hostPlatform . isLinux ''find $out -name "*.so" -exec patchelf {} --add-rpath $out/lib/R/lib \;'' }
107+ '' ;
105108
106109 doCheck = true ;
107110 preCheck = "export HOME=$TMPDIR; export TZ=CET; bin/Rscript -e 'sessionInfo()'" ;
You can’t perform that action at this time.
0 commit comments