depot/third_party/nixpkgs/pkgs/servers/mail/mailman/default.nix

34 lines
877 B
Nix
Raw Normal View History

{ newScope, lib, python3 }:
let
callPackage = newScope self;
self = lib.makeExtensible (self: {
python3 = callPackage ./python.nix { inherit python3; };
hyperkitty = callPackage ./hyperkitty.nix { };
mailman = callPackage ./package.nix { };
mailman-hyperkitty = callPackage ./mailman-hyperkitty.nix { };
postorius = callPackage ./postorius.nix { };
web = callPackage ./web.nix { };
buildEnvs = { web ? self.web
, mailman ? self.mailman
, mailman-hyperkitty ? self.mailman-hyperkitty
, withHyperkitty ? false
}:
{
mailmanEnv = self.python3.withPackages
(ps: [ mailman ps.psycopg2 ]
++ lib.optional withHyperkitty mailman-hyperkitty);
webEnv = self.python3.withPackages
(ps: [ web ps.psycopg2 ]);
};
});
in self