2022-04-26 10:19:41 +00:00
|
|
|
{ newScope, lib, python3 }:
|
2019-08-23 20:19:45 +00:00
|
|
|
|
2021-10-09 23:15:47 +00:00
|
|
|
let
|
2022-07-04 14:45:54 +00:00
|
|
|
self = lib.makeExtensible (self: let inherit (self) callPackage; in {
|
|
|
|
callPackage = newScope self;
|
2021-10-09 23:15:47 +00:00
|
|
|
|
2022-04-26 10:19:41 +00:00
|
|
|
python3 = callPackage ./python.nix { inherit python3; };
|
2019-08-23 20:19:45 +00:00
|
|
|
|
2022-04-26 10:19:41 +00:00
|
|
|
hyperkitty = callPackage ./hyperkitty.nix { };
|
2013-10-21 13:02:35 +00:00
|
|
|
|
2022-04-26 10:19:41 +00:00
|
|
|
mailman = callPackage ./package.nix { };
|
2013-10-21 13:02:35 +00:00
|
|
|
|
2022-04-26 10:19:41 +00:00
|
|
|
mailman-hyperkitty = callPackage ./mailman-hyperkitty.nix { };
|
2020-05-22 12:12:43 +00:00
|
|
|
|
2022-04-26 10:19:41 +00:00
|
|
|
postorius = callPackage ./postorius.nix { };
|
2021-10-09 23:15:47 +00:00
|
|
|
|
2022-04-26 10:19:41 +00:00
|
|
|
web = callPackage ./web.nix { };
|
2019-08-29 16:37:20 +00:00
|
|
|
|
2022-05-19 23:36:48 +00:00
|
|
|
buildEnvs = { web ? self.web
|
|
|
|
, mailman ? self.mailman
|
|
|
|
, mailman-hyperkitty ? self.mailman-hyperkitty
|
|
|
|
, withHyperkitty ? false
|
2022-06-30 17:35:43 +00:00
|
|
|
, withLDAP ? false
|
2022-05-19 23:36:48 +00:00
|
|
|
}:
|
|
|
|
{
|
|
|
|
mailmanEnv = self.python3.withPackages
|
|
|
|
(ps: [ mailman ps.psycopg2 ]
|
2022-06-30 17:35:43 +00:00
|
|
|
++ lib.optional withHyperkitty mailman-hyperkitty
|
2022-10-07 17:11:50 +00:00
|
|
|
++ lib.optionals withLDAP [ ps.python-ldap ps.django-auth-ldap ]);
|
2022-05-19 23:36:48 +00:00
|
|
|
webEnv = self.python3.withPackages
|
2022-10-07 17:11:50 +00:00
|
|
|
(ps: [ web ps.psycopg2 ] ++ lib.optionals withLDAP [ ps.python-ldap ps.django-auth-ldap ]);
|
2022-05-19 23:36:48 +00:00
|
|
|
};
|
2022-04-26 10:19:41 +00:00
|
|
|
});
|
2017-06-28 18:34:21 +00:00
|
|
|
|
2022-04-26 10:19:41 +00:00
|
|
|
in self
|