2022-06-16 17:23:12 +00:00
|
|
|
{ newScope, lib, python3 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
let
|
2022-07-14 12:49:19 +00:00
|
|
|
self = lib.makeExtensible (self: let inherit (self) callPackage; in {
|
|
|
|
callPackage = newScope self;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
python3 = callPackage ./python.nix { inherit python3; };
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
hyperkitty = callPackage ./hyperkitty.nix { };
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
mailman = callPackage ./package.nix { };
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
mailman-hyperkitty = callPackage ./mailman-hyperkitty.nix { };
|
2020-06-15 15:56:04 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
postorius = callPackage ./postorius.nix { };
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
web = callPackage ./web.nix { };
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
buildEnvs = { web ? self.web
|
|
|
|
, mailman ? self.mailman
|
|
|
|
, mailman-hyperkitty ? self.mailman-hyperkitty
|
|
|
|
, withHyperkitty ? false
|
2022-07-14 12:49:19 +00:00
|
|
|
, withLDAP ? false
|
2022-06-16 17:23:12 +00:00
|
|
|
}:
|
|
|
|
{
|
|
|
|
mailmanEnv = self.python3.withPackages
|
|
|
|
(ps: [ mailman ps.psycopg2 ]
|
2022-07-14 12:49:19 +00:00
|
|
|
++ lib.optional withHyperkitty mailman-hyperkitty
|
|
|
|
++ lib.optionals withLDAP [ ps.ldap ps.django-auth-ldap ]);
|
2022-06-16 17:23:12 +00:00
|
|
|
webEnv = self.python3.withPackages
|
2022-07-14 12:49:19 +00:00
|
|
|
(ps: [ web ps.psycopg2 ] ++ lib.optionals withLDAP [ ps.ldap ps.django-auth-ldap ]);
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
});
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
in self
|