{ 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) ''; }