We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66576dc commit 57460caCopy full SHA for 57460ca
pkgs/development/python-modules/magic-wormhole/default.nix
@@ -3,6 +3,7 @@
3
stdenv,
4
buildPythonPackage,
5
fetchFromGitHub,
6
+ installShellFiles,
7
8
# build-system
9
setuptools,
@@ -88,6 +89,10 @@ buildPythonPackage rec {
88
89
dilation = [ noiseprotocol ];
90
};
91
92
+ nativeBuildInputs = [
93
+ installShellFiles
94
+ ];
95
+
96
nativeCheckInputs =
97
[
98
magic-wormhole-mailbox-server
@@ -101,6 +106,10 @@ buildPythonPackage rec {
101
106
102
107
postInstall = ''
103
108
install -Dm644 docs/wormhole.1 $out/share/man/man1/wormhole.1
109
+ installShellCompletion --cmd ${meta.mainProgram} \
110
+ --bash wormhole_complete.bash \
111
+ --fish wormhole_complete.fish \
112
+ --zsh wormhole_complete.zsh
104
113
'';
105
114
115
meta = {
0 commit comments