git.iko.soy/typeable/nixpkgs
on master help sign in
breezy: install completions
commit95fd917f4ee38d209813495d178ccc16db64cd80 authorMario Rodas <marsam@users.noreply.github.com> dateSat 30 Apr 2022, 04:20 (5 years ago) parent205e19c
1 file changed+5
pkgs/development/python-modules/breezy/default.nix+5
pkgs/development/python-modules/breezy/default.nix+5
@@ -9,6 +9,7 @@
99, launchpadlib
1010, testtools
1111, pythonOlder
12+, installShellFiles
1213}:
1314
1415buildPythonPackage rec {
@@ -22,6 +23,8 @@ buildPythonPackage rec {
2223 sha256 = "sha256-GHpuRSCN0F2BdQc2cgyDcQz0gJT1R+xAgcVxJZVZpNU=";
2324 };
2425
26+ nativeBuildInputs = [ installShellFiles ];
27+
2528 propagatedBuildInputs = [
2629 configobj
2730 fastbencode
@@ -39,6 +42,8 @@ buildPythonPackage rec {
3942 # symlink for bazaar compatibility
4043 postInstall = ''
4144 ln -s "$out/bin/brz" "$out/bin/bzr"
45+
46+ installShellCompletion --cmd brz --bash contrib/bash/brz
4247 '';
4348
4449 pythonImportsCheck = [ "breezy" ];