-
Notifications
You must be signed in to change notification settings - Fork 3
/
poglets.nix
40 lines (34 loc) · 1.08 KB
/
poglets.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# [poglets](https://github.com/jpetrucciani/poglets) is a TCP tunneling system
{ lib, buildGo122Module, fetchFromGitHub, installShellFiles }:
buildGo122Module rec {
pname = "poglets";
version = "0.0.3";
commit = "0e96c5f5887cd317cd92e6e51eb366929cee3ed1";
src = fetchFromGitHub {
owner = "jpetrucciani";
repo = pname;
rev = version;
hash = "sha256-owWLviFu/Y+365XZEw7vjmJMmz8wAYMkvGonVJDJ9rU=";
};
vendorHash = "sha256-Hjdv2Fvl1S52CDs4TAR3Yt9pEFUIvs5N5sVhZY+Edzo=";
nativeBuildInputs = [ installShellFiles ];
ldflags = [
"-s"
"-w"
"-X main.Version=${version}"
"-X main.GitCommit=${commit}"
];
postInstall = ''
installShellCompletion --cmd poglets \
--bash <($out/bin/poglets completion bash) \
--fish <($out/bin/poglets completion fish) \
--zsh <($out/bin/poglets completion zsh)
'';
meta = with lib; {
description = "a TCP tunneling system";
homepage = "https://github.com/jpetrucciani/poglets";
license = licenses.mit;
mainProgram = "poglets";
maintainers = with maintainers; [ jpetrucciani ];
};
}