utils/tunnel-go/default.nix

28 lines
404 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 ./.;
vendorHash = "";
nativeBuildInputs = [
installShellFiles
makeWrapper
];
postInstall = ''
installShellCompletion --cmd ${pname} \
--zsh <($out/bin/${pname} completion zsh)
'';
}