summary refs log tree commit diff
path: root/pkgs/applications/science/math/R/default.nix
diff options
context:
space:
mode:
authorrhokue <48916416+rhokue@users.noreply.github.com>2019-04-05 03:08:53 +0200
committerPeter Simons <simons@cryp.to>2019-04-07 11:12:43 +0200
commitcbade453ac4ae2f86e514ba2091f86974b7a9d86 (patch)
tree687bc2c2809425fa33aaaec1fd597d2f85e79c24 /pkgs/applications/science/math/R/default.nix
parentca494bf6c3881124ced632f7b4072e8d1cee0bd3 (diff)
downloadnixpkgs-cbade453ac4ae2f86e514ba2091f86974b7a9d86.tar
nixpkgs-cbade453ac4ae2f86e514ba2091f86974b7a9d86.tar.gz
nixpkgs-cbade453ac4ae2f86e514ba2091f86974b7a9d86.tar.bz2
nixpkgs-cbade453ac4ae2f86e514ba2091f86974b7a9d86.tar.lz
nixpkgs-cbade453ac4ae2f86e514ba2091f86974b7a9d86.tar.xz
nixpkgs-cbade453ac4ae2f86e514ba2091f86974b7a9d86.tar.zst
nixpkgs-cbade453ac4ae2f86e514ba2091f86974b7a9d86.zip
R: explicitly declare `which` as a run-time dependency
Fixes https://github.com/NixOS/nixpkgs/issues/58963.
Closes https://github.com/NixOS/nixpkgs/pull/58989.
Diffstat (limited to 'pkgs/applications/science/math/R/default.nix')
-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 562874ccc13..ab411999a21 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()'";