mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-16 18:03:59 +00:00
wormhole-william: install shell completions (#362652)
This commit is contained in:
commit
4eca165339
@ -1,4 +1,4 @@
|
||||
{ lib, buildGoModule, fetchFromGitHub }:
|
||||
{ lib, stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "wormhole-william";
|
||||
@ -22,6 +22,15 @@ buildGoModule rec {
|
||||
"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; {
|
||||
homepage = "https://github.com/psanford/wormhole-william";
|
||||
description = "End-to-end encrypted file transfers";
|
||||
|
Loading…
Reference in New Issue
Block a user