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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.1 KiB
Nix
Raw Normal View History

{ newScope, lib, python3 }:
let
self = lib.makeExtensible (self: let inherit (self) callPackage; in {
callPackage = newScope self;
python3 = callPackage ./python.nix { inherit python3; };
hyperkitty = callPackage ./hyperkitty.nix { };
2013-10-21 17:02:35 +04:00
mailman = callPackage ./package.nix { };
2013-10-21 17:02:35 +04:00
mailman-hyperkitty = callPackage ./mailman-hyperkitty.nix { };
2020-05-22 15:12:43 +03:00
postorius = callPackage ./postorius.nix { };
web = callPackage ./web.nix { };
buildEnvs = { web ? self.web
, mailman ? self.mailman
, mailman-hyperkitty ? self.mailman-hyperkitty
, withHyperkitty ? false
, withLDAP ? false
}:
{
mailmanEnv = self.python3.withPackages
(ps: [ mailman ps.psycopg2 ]
++ lib.optional withHyperkitty mailman-hyperkitty
++ lib.optionals withLDAP [ ps.ldap ps.django-auth-ldap ]);
webEnv = self.python3.withPackages
(ps: [ web ps.psycopg2 ] ++ lib.optionals withLDAP [ ps.ldap ps.django-auth-ldap ]);
};
});
in self