24 lines
445 B
Nix
24 lines
445 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)
|
|
'';
|
|
}
|