diff options
author | Thomas Bereknyei <tomberek@gmail.com> | 2021-04-17 23:16:48 -0400 |
---|---|---|
committer | tomberek <tomberek@users.noreply.github.com> | 2021-05-04 20:05:22 -0400 |
commit | 77e969952ec4759ceaf3a231dd1b1113c6291976 (patch) | |
tree | 4266f8867f252364686594c7203629c9e3b88e61 /pkgs/applications/version-management/sourcehut | |
parent | 1b802ce41455d6359783af34d4824df9ec2549e0 (diff) | |
download | nixpkgs-77e969952ec4759ceaf3a231dd1b1113c6291976.tar nixpkgs-77e969952ec4759ceaf3a231dd1b1113c6291976.tar.gz nixpkgs-77e969952ec4759ceaf3a231dd1b1113c6291976.tar.bz2 nixpkgs-77e969952ec4759ceaf3a231dd1b1113c6291976.tar.lz nixpkgs-77e969952ec4759ceaf3a231dd1b1113c6291976.tar.xz nixpkgs-77e969952ec4759ceaf3a231dd1b1113c6291976.tar.zst nixpkgs-77e969952ec4759ceaf3a231dd1b1113c6291976.zip |
sourcehut: refactor
Diffstat (limited to 'pkgs/applications/version-management/sourcehut')
-rw-r--r-- | pkgs/applications/version-management/sourcehut/default.nix | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/applications/version-management/sourcehut/default.nix b/pkgs/applications/version-management/sourcehut/default.nix index 8d2e8ceed33..43d783e1934 100644 --- a/pkgs/applications/version-management/sourcehut/default.nix +++ b/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; |