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 {
|
perlPackages = recurseIntoAttrs (import ./perl-packages.nix {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
|
__overrides = (config.perlPackageOverrides or (p: {})) pkgs;
|
||||||
});
|
});
|
||||||
|
|
||||||
perl510Packages = import ./perl-packages.nix {
|
perl510Packages = import ./perl-packages.nix {
|
||||||
|
@ -5,12 +5,14 @@
|
|||||||
for each package in a separate file: the call to the function would
|
for each package in a separate file: the call to the function would
|
||||||
be almost as must code as the function itself. */
|
be almost as must code as the function itself. */
|
||||||
|
|
||||||
{pkgs}:
|
{pkgs, __overrides}:
|
||||||
|
|
||||||
rec {
|
rec {
|
||||||
|
|
||||||
inherit (pkgs) buildPerlPackage fetchurl stdenv perl fetchsvn;
|
inherit (pkgs) buildPerlPackage fetchurl stdenv perl fetchsvn;
|
||||||
|
|
||||||
|
inherit __overrides;
|
||||||
|
|
||||||
# Helper functions for packages that use Module::Build to build.
|
# Helper functions for packages that use Module::Build to build.
|
||||||
buildPerlModule = { buildInputs ? [], ... } @ args:
|
buildPerlModule = { buildInputs ? [], ... } @ args:
|
||||||
buildPerlPackage (args // {
|
buildPerlPackage (args // {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user