utils/tunnel-go/default.nix

28 lines
455 B
Nix

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