mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-30 08:44:31 +00:00
nixpkgs-review: 2.9.3 -> 2.10.0
Diff: https://github.com/Mic92/nixpkgs-review/compare/2.9.3...2.10.0 Changelog: https://github.com/Mic92/nixpkgs-review/releases/tag/2.10.0
This commit is contained in:
parent
40ded9e2b8
commit
3555054614
@ -2,27 +2,39 @@
|
||||
, python3
|
||||
, fetchFromGitHub
|
||||
|
||||
, installShellFiles
|
||||
, bubblewrap
|
||||
, nix-output-monitor
|
||||
, cacert
|
||||
, git
|
||||
, nix
|
||||
|
||||
, withAutocomplete ? true
|
||||
, withSandboxSupport ? false
|
||||
, withNom ? false
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "nixpkgs-review";
|
||||
version = "2.9.3";
|
||||
version = "2.10.0";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Mic92";
|
||||
repo = "nixpkgs-review";
|
||||
rev = version;
|
||||
sha256 = "sha256-Pcyhrw6oR+tLf/qgLnb7qx3003ldv3KuDVg6QsEhQp0=";
|
||||
hash = "sha256-uMcTwRmELk/vFI7vU4+UUvBDhlF+gVgohIXE0Sm1/d8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
python3.pkgs.setuptools
|
||||
] ++ lib.optionals withAutocomplete [
|
||||
python3.pkgs.argcomplete
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ python3.pkgs.argcomplete ];
|
||||
|
||||
makeWrapperArgs =
|
||||
let
|
||||
binPath = [ nix git ]
|
||||
@ -38,6 +50,15 @@ python3.pkgs.buildPythonApplication rec {
|
||||
|
||||
doCheck = false;
|
||||
|
||||
postInstall = lib.optionalString withAutocomplete ''
|
||||
for cmd in nix-review nixpkgs-review; do
|
||||
installShellCompletion --cmd $cmd \
|
||||
--bash <(register-python-argcomplete $out/bin/$cmd) \
|
||||
--fish <(register-python-argcomplete $out/bin/$cmd -s fish) \
|
||||
--zsh <(register-python-argcomplete $out/bin/$cmd -s zsh)
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Review pull-requests on https://github.com/NixOS/nixpkgs";
|
||||
homepage = "https://github.com/Mic92/nixpkgs-review";
|
||||
|
Loading…
Reference in New Issue
Block a user