sourcehut: refactor

wip/yesman
Thomas Bereknyei 3 years ago committed by tomberek
parent 1b802ce414
commit 77e969952e
  1. 13
      pkgs/applications/version-management/sourcehut/default.nix

@ -1,14 +1,16 @@
{ python38, openssl
, callPackage, recurseIntoAttrs }:
{ python3
, openssl
, callPackage
, recurseIntoAttrs
}:
# 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 { };
python = python38.override {
python = python3.override {
packageOverrides = self: super: {
srht = self.callPackage ./core.nix { inherit fetchNodeModules; };
@ -26,7 +28,8 @@ let
scmsrht = self.callPackage ./scm.nix { };
};
};
in with python.pkgs; recurseIntoAttrs {
in
with python.pkgs; recurseIntoAttrs {
inherit python;
buildsrht = toPythonApplication buildsrht;
dispatchsrht = toPythonApplication dispatchsrht;

Loading…
Cancel
Save