mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 04:05:40 +03:00
magic-wormhole: install shell completions (#414322)
This commit is contained in:
commit
136cadac53
1 changed files with 9 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
installShellFiles,
|
||||
|
||||
# build-system
|
||||
setuptools,
|
||||
|
@ -88,6 +89,10 @@ buildPythonPackage rec {
|
|||
dilation = [ noiseprotocol ];
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
|
||||
nativeCheckInputs =
|
||||
[
|
||||
magic-wormhole-mailbox-server
|
||||
|
@ -101,6 +106,10 @@ buildPythonPackage rec {
|
|||
|
||||
postInstall = ''
|
||||
install -Dm644 docs/wormhole.1 $out/share/man/man1/wormhole.1
|
||||
installShellCompletion --cmd ${meta.mainProgram} \
|
||||
--bash wormhole_complete.bash \
|
||||
--fish wormhole_complete.fish \
|
||||
--zsh wormhole_complete.zsh
|
||||
'';
|
||||
|
||||
meta = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue