From 8b565e95a470348e424607320c42ceacefc034a0 Mon Sep 17 00:00:00 2001 From: Phil Dyer Date: Wed, 15 Sep 2021 11:12:17 +1000 Subject: [PATCH] rPackages: generate-shell.nix works with --pure generate-R-packages.R fails without these changes. Without `cacert`, all wget/curl calls will fail with an error about no valid certificates. Without `nix`, calling `nix-hash` fails. An impure nix-shell can get away with not adding these if the system NIXPKGS version is the same as the version of NIXPKGS used with `nix-shell generate-shell.nix` --- pkgs/development/r-modules/generate-shell.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/r-modules/generate-shell.nix b/pkgs/development/r-modules/generate-shell.nix index 9719a61f442..1c96cf05cb5 100644 --- a/pkgs/development/r-modules/generate-shell.nix +++ b/pkgs/development/r-modules/generate-shell.nix @@ -5,7 +5,11 @@ stdenv.mkDerivation { buildCommand = "exit 1"; - buildInputs = [ wget ]; + buildInputs = [ + wget + cacert + nix + ]; nativeBuildInputs = [ (rWrapper.override {