diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 05e57e5cbeec..31251ccddeef 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5252,6 +5252,7 @@ let perlPackages = recurseIntoAttrs (import ./perl-packages.nix { inherit pkgs; + __overrides = (config.perlPackageOverrides or (p: {})) pkgs; }); perl510Packages = import ./perl-packages.nix { diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 4291fde5908e..2856ae88e374 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -5,12 +5,14 @@ for each package in a separate file: the call to the function would be almost as must code as the function itself. */ -{pkgs}: +{pkgs, __overrides}: rec { inherit (pkgs) buildPerlPackage fetchurl stdenv perl fetchsvn; + inherit __overrides; + # Helper functions for packages that use Module::Build to build. buildPerlModule = { buildInputs ? [], ... } @ args: buildPerlPackage (args // {