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