blob: ff682cfac52e8f687c5a3bde7f387cb3b59b4a79 (
plain) (
blame)
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
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "pritunl-client";
version = "1.3.3484.2";
src = fetchFromGitHub {
owner = "pritunl";
repo = "pritunl-client-electron";
rev = version;
sha256 = "sha256-thIbw/Iek2vNNmkOBHrzEhTbaOm05CsbjqORQKC2jIs=";
};
modRoot = "cli";
vendorHash = "sha256-miwGLWpoaavg/xcw/0pNBYCdovBnvjP5kdaaGPcRuWk=";
nativeBuildInputs = [
installShellFiles
];
postInstall = ''
mv $out/bin/cli $out/bin/pritunl-client
installShellCompletion --cmd pritunl-client \
--bash <($out/bin/pritunl-client completion bash) \
--fish <($out/bin/pritunl-client completion fish) \
--zsh <($out/bin/pritunl-client completion zsh)
'';
meta = with lib; {
description = "Pritunl OpenVPN client CLI";
homepage = "https://github.com/pritunl/pritunl-client-electron/tree/master/cli";
license = licenses.unfree;
maintainers = with maintainers; [ minizilla ];
};
}
|