diff --git a/pkgs/development/r-modules/default.nix b/pkgs/development/r-modules/default.nix index f5851dfc831e..e60181100be4 100644 --- a/pkgs/development/r-modules/default.nix +++ b/pkgs/development/r-modules/default.nix @@ -1,9 +1,9 @@ /* This file defines the composition for CRAN (R) packages. */ -{ pkgs, overrides }: +{ R, pkgs, overrides }: let - inherit (pkgs) R fetchurl stdenv lib xvfb_run utillinux; + inherit (pkgs) fetchurl stdenv lib xvfb_run utillinux; buildRPackage = import ./generic-builder.nix { inherit R xvfb_run utillinux ; }; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bec2ee74dcff..c4f8c52bb4af 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7725,8 +7725,7 @@ let packages = []; }; - rPackages = import ../development/r-modules { - inherit pkgs; + rPackages = callPackage ../development/r-modules { overrides = (config.rPackageOverrides or (p: {})) pkgs; };