about summary refs log tree commit diff
path: root/overlays/patches/python/default.nix
blob: 61c9ed83d089e74046d2db897e4ed2f0b71e2682 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ python, lib, packageOverrides ? (_: _: {}), ... } @ args:

let
  inherit (builtins) removeAttrs;
  inherit (lib) composeExtensions fold;
in

python.override ((removeAttrs args [ "lib" "python" ]) // {
  packageOverrides = fold composeExtensions python.packageOverrides
    [
      (final: super: with final; {
        hyperkitty = callPackage ./packages/hyperkitty {
          inherit (super) hyperkitty;
        };

        mailman-web = callPackage ./packages/mailman-web {
          inherit (super) mailman-web;
        };
      })
      packageOverrides
    ];
})