sourcehut: refactor

authored by

Thomas Bereknyei and committed by
tomberek
77e96995 1b802ce4

+8 -5
+8 -5
pkgs/applications/version-management/sourcehut/default.nix
··· 1 - { python38, openssl 2 - , callPackage, recurseIntoAttrs }: 1 + { python3 2 + , openssl 3 + , callPackage 4 + , recurseIntoAttrs 5 + }: 3 6 4 7 # To expose the *srht modules, they have to be a python module so we use `buildPythonModule` 5 8 # Then we expose them through all-packages.nix as an application through `toPythonApplication` 6 9 # https://github.com/NixOS/nixpkgs/pull/54425#discussion_r250688781 7 - 8 10 let 9 11 fetchNodeModules = callPackage ./fetchNodeModules.nix { }; 10 12 11 - python = python38.override { 13 + python = python3.override { 12 14 packageOverrides = self: super: { 13 15 srht = self.callPackage ./core.nix { inherit fetchNodeModules; }; 14 16 ··· 26 28 scmsrht = self.callPackage ./scm.nix { }; 27 29 }; 28 30 }; 29 - in with python.pkgs; recurseIntoAttrs { 31 + in 32 + with python.pkgs; recurseIntoAttrs { 30 33 inherit python; 31 34 buildsrht = toPythonApplication buildsrht; 32 35 dispatchsrht = toPythonApplication dispatchsrht;