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-06-16 17:23:12 +00:00
|
|
|
callPackage = newScope self;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
self = lib.makeExtensible (self: {
|
|
|
|
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
|
|
|
|
}:
|
|
|
|
{
|
|
|
|
mailmanEnv = self.python3.withPackages
|
|
|
|
(ps: [ mailman ps.psycopg2 ]
|
|
|
|
++ lib.optional withHyperkitty mailman-hyperkitty);
|
|
|
|
webEnv = self.python3.withPackages
|
|
|
|
(ps: [ web ps.psycopg2 ]);
|
|
|
|
};
|
|
|
|
});
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
in self
|