mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
[Backport release-24.11] wormhole-william: install shell completions (#363127)
This commit is contained in:
commit
a772e2972b
1 changed files with 10 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildGoModule, fetchFromGitHub }:
|
{ lib, stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "wormhole-william";
|
pname = "wormhole-william";
|
||||||
|
@ -22,6 +22,15 @@ buildGoModule rec {
|
||||||
"SkipWormholeDirectoryTransportSendRecvDirect"
|
"SkipWormholeDirectoryTransportSendRecvDirect"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
|
installShellCompletion --cmd wormhole-william \
|
||||||
|
--bash <($out/bin/wormhole-william shell-completion bash) \
|
||||||
|
--fish <($out/bin/wormhole-william shell-completion fish) \
|
||||||
|
--zsh <($out/bin/wormhole-william shell-completion zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/psanford/wormhole-william";
|
homepage = "https://github.com/psanford/wormhole-william";
|
||||||
description = "End-to-end encrypted file transfers";
|
description = "End-to-end encrypted file transfers";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue