2019-08-23 02:02:50 +02:00
|
|
|
{ python37, openssl
|
2019-10-02 21:15:31 +02:00
|
|
|
, callPackage, recurseIntoAttrs }:
|
2019-01-22 03:01:52 +01: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
|
2020-02-17 18:36:48 +01:00
|
|
|
fetchNodeModules = callPackage ./fetchNodeModules.nix { };
|
2019-01-22 03:01:52 +01:00
|
|
|
|
|
|
|
python = python37.override {
|
|
|
|
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-06-23 02:05:34 +02:00
|
|
|
hubsrht = self.callPackage ./hub.nix { };
|
2019-01-22 03:01:52 +01:00
|
|
|
listssrht = self.callPackage ./lists.nix { };
|
|
|
|
mansrht = self.callPackage ./man.nix { };
|
|
|
|
metasrht = self.callPackage ./meta.nix { };
|
|
|
|
pastesrht = self.callPackage ./paste.nix { };
|
|
|
|
todosrht = self.callPackage ./todo.nix { };
|
|
|
|
|
|
|
|
scmsrht = self.callPackage ./scm.nix { };
|
|
|
|
};
|
|
|
|
};
|
2019-10-02 21:15:31 +02:00
|
|
|
in with python.pkgs; recurseIntoAttrs {
|
2019-01-22 03:01:52 +01:00
|
|
|
inherit python;
|
|
|
|
buildsrht = toPythonApplication buildsrht;
|
|
|
|
dispatchsrht = toPythonApplication dispatchsrht;
|
|
|
|
gitsrht = toPythonApplication gitsrht;
|
|
|
|
hgsrht = toPythonApplication hgsrht;
|
2020-06-23 02:05:34 +02:00
|
|
|
hubsrht = toPythonApplication hubsrht;
|
2019-01-22 03:01:52 +01:00
|
|
|
listssrht = toPythonApplication listssrht;
|
|
|
|
mansrht = toPythonApplication mansrht;
|
|
|
|
metasrht = toPythonApplication metasrht;
|
|
|
|
pastesrht = toPythonApplication pastesrht;
|
|
|
|
todosrht = toPythonApplication todosrht;
|
|
|
|
}
|