28 lines
404 B
Nix
28 lines
404 B
Nix
|
{
|
||
|
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)
|
||
|
'';
|
||
|
}
|