utils/tunnel-go/default.nix

25 lines
445 B
Nix
Raw Normal View History

2024-08-16 11:02:24 -05:00
{
lib,
installShellFiles,
buildGoModule,
makeWrapper,
...
}:
let
inherit (lib) cleanSource;
in
buildGoModule rec {
pname = "tunnel";
version = "unstable";
src = cleanSource ./.;
2024-08-16 14:07:25 -05:00
vendorHash = "sha256-PwZJMEVaPHqZs7bM+9XLxVA36GfV3EN6bja86hkfO90=";
2024-08-16 11:02:24 -05:00
2024-08-16 14:07:25 -05:00
nativeBuildInputs = [ installShellFiles makeWrapper ];
2024-08-16 11:02:24 -05:00
postInstall = ''
installShellCompletion --cmd ${pname} \
--zsh <($out/bin/${pname} completion zsh)
'';
}