R: don't install the "recommended packages"

These packages come with R, but if we install them as part of this build, then
we cannot update them without re-building R as well. Instead, we add those
packages to the R environment through the r-wrapper. This means that
recommended packages can be updated in cran-packgaes.nix, and those updates
have an effect on the installation without re-building R itself.
This commit is contained in:
Peter Simons
2014-05-04 21:12:34 +02:00
parent a329900977
commit a9258080b1
3 changed files with 11 additions and 3 deletions

View File

@@ -1,9 +1,9 @@
{ stdenv, R, packages, makeWrapper }:
{ stdenv, R, makeWrapper, recommendedPackages, packages }:
stdenv.mkDerivation {
name = R.name + "-wrapper";
buildInputs = [makeWrapper R] ++ packages;
buildInputs = [makeWrapper R] ++ recommendedPackages ++ packages;
unpackPhase = ":";