Allow overriding perlPackages
__overrides is the worst. Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
a9c7252a3e
commit
34e0c33d6f
@ -5252,6 +5252,7 @@ let
|
||||
|
||||
perlPackages = recurseIntoAttrs (import ./perl-packages.nix {
|
||||
inherit pkgs;
|
||||
__overrides = (config.perlPackageOverrides or (p: {})) pkgs;
|
||||
});
|
||||
|
||||
perl510Packages = import ./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 // {
|
||||
|
Loading…
Reference in New Issue
Block a user