Skip to content

Commit

Permalink
install completions
Browse files Browse the repository at this point in the history
  • Loading branch information
ingon committed Jan 8, 2025
1 parent e0afa62 commit c439425
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion nix/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,16 @@ pkgs.buildGoModule
vendorHash = "sha256-KwrICtuXNh7vANFo9fkiNbTXESjiKnzm4+JBmKdoNmo=";
subPackages = [ "cmd/connet" ];

nativeBuildInputs = [ pkgs.installShellFiles ];
postInstall = lib.optionalString (pkgs.stdenv.buildPlatform.canExecute pkgs.stdenv.hostPlatform) ''
installShellCompletion --cmd connet \
--bash <($out/bin/connet completion bash) \
--fish <($out/bin/connet completion fish) \
--zsh <($out/bin/connet completion zsh)
'';

meta = with lib; {
description = "A reverse proxy, written in Golang";
description = "A p2p reverse proxy, written in Golang";
homepage = "https://github.com/connet-dev/connet";
license = licenses.asl20;
mainProgram = "connet";
Expand Down

0 comments on commit c439425

Please sign in to comment.