about summary refs log tree commit diff
path: root/pkgs/applications/science
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2019-04-07 15:14:52 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2019-04-07 15:14:52 +0200
commit7f7da0a16f05f7e86559b41d98f2a67eaec30587 (patch)
tree8df4efebb83e7c2614aa10def3d87369f6ddb337 /pkgs/applications/science
parent4a125f6b202516b1ae8dee79202ad9fff1c7693a (diff)
parentb2011766ed8c20647d5c40d8c6bad74c9373aa0a (diff)
Merge master into staging-next
Diffstat (limited to 'pkgs/applications/science')
-rw-r--r--pkgs/applications/science/math/R/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/R/default.nix b/pkgs/applications/science/math/R/default.nix
index 562874ccc136b..ab411999a216c 100644
--- a/pkgs/applications/science/math/R/default.nix
+++ b/pkgs/applications/science/math/R/default.nix
@@ -69,6 +69,11 @@ stdenv.mkDerivation rec {
 
   installTargets = [ "install" "install-info" "install-pdf" ];
 
+  # The store path to "which" is baked into src/library/base/R/unix/system.unix.R,
+  # but Nix cannot detect it as a run-time dependency because the installed file
+  # is compiled and compressed, which hides the store path.
+  postInstall = "echo ${which} > $out/nix-support/undetected-runtime-dependencies";
+
   doCheck = true;
   preCheck = "export TZ=CET; bin/Rscript -e 'sessionInfo()'";