2021-05-20 23:08:51 +00:00
|
|
|
{ python3
|
|
|
|
, callPackage
|
|
|
|
, recurseIntoAttrs
|
2022-06-16 17:23:12 +00:00
|
|
|
, nixosTests
|
2021-05-20 23:08:51 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# To expose the *srht modules, they have to be a python module so we use `buildPythonModule`
|
|
|
|
# Then we expose them through all-packages.nix as an application through `toPythonApplication`
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/54425#discussion_r250688781
|
|
|
|
let
|
|
|
|
fetchNodeModules = callPackage ./fetchNodeModules.nix { };
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
python = python3.override {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageOverrides = self: super: {
|
|
|
|
srht = self.callPackage ./core.nix { inherit fetchNodeModules; };
|
|
|
|
|
|
|
|
buildsrht = self.callPackage ./builds.nix { };
|
|
|
|
dispatchsrht = self.callPackage ./dispatch.nix { };
|
|
|
|
gitsrht = self.callPackage ./git.nix { };
|
|
|
|
hgsrht = self.callPackage ./hg.nix { };
|
2020-09-25 04:45:31 +00:00
|
|
|
hubsrht = self.callPackage ./hub.nix { };
|
2020-04-24 23:36:52 +00:00
|
|
|
listssrht = self.callPackage ./lists.nix { };
|
|
|
|
mansrht = self.callPackage ./man.nix { };
|
|
|
|
metasrht = self.callPackage ./meta.nix { };
|
2021-12-30 13:39:12 +00:00
|
|
|
pagessrht = self.callPackage ./pages.nix { };
|
2020-04-24 23:36:52 +00:00
|
|
|
pastesrht = self.callPackage ./paste.nix { };
|
|
|
|
todosrht = self.callPackage ./todo.nix { };
|
|
|
|
|
|
|
|
scmsrht = self.callPackage ./scm.nix { };
|
|
|
|
};
|
|
|
|
};
|
2021-05-20 23:08:51 +00:00
|
|
|
in
|
|
|
|
with python.pkgs; recurseIntoAttrs {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit python;
|
2021-06-06 07:54:09 +00:00
|
|
|
coresrht = toPythonApplication srht;
|
2020-04-24 23:36:52 +00:00
|
|
|
buildsrht = toPythonApplication buildsrht;
|
|
|
|
dispatchsrht = toPythonApplication dispatchsrht;
|
|
|
|
gitsrht = toPythonApplication gitsrht;
|
|
|
|
hgsrht = toPythonApplication hgsrht;
|
2020-09-25 04:45:31 +00:00
|
|
|
hubsrht = toPythonApplication hubsrht;
|
2020-04-24 23:36:52 +00:00
|
|
|
listssrht = toPythonApplication listssrht;
|
|
|
|
mansrht = toPythonApplication mansrht;
|
|
|
|
metasrht = toPythonApplication metasrht;
|
2021-12-30 13:39:12 +00:00
|
|
|
pagessrht = pagessrht;
|
2020-04-24 23:36:52 +00:00
|
|
|
pastesrht = toPythonApplication pastesrht;
|
|
|
|
todosrht = toPythonApplication todosrht;
|
2022-06-16 17:23:12 +00:00
|
|
|
passthru.tests = {
|
|
|
|
nixos-sourcehut = nixosTests.sourcehut;
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|