2022-10-21 18:38:19 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "pritunl-client";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "1.3.3484.2";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pritunl";
|
|
|
|
repo = "pritunl-client-electron";
|
|
|
|
rev = version;
|
2023-04-12 12:48:02 +00:00
|
|
|
sha256 = "sha256-thIbw/Iek2vNNmkOBHrzEhTbaOm05CsbjqORQKC2jIs=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
modRoot = "cli";
|
2023-03-08 16:32:21 +00:00
|
|
|
vendorHash = "sha256-miwGLWpoaavg/xcw/0pNBYCdovBnvjP5kdaaGPcRuWk=";
|
2022-10-21 18:38:19 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/bin/cli $out/bin/pritunl-client
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pritunl OpenVPN client CLI";
|
|
|
|
homepage = "https://github.com/pritunl/pritunl-client-electron/tree/master/cli";
|
|
|
|
license = licenses.unfree;
|
2023-03-30 22:05:00 +00:00
|
|
|
maintainers = with maintainers; [ minizilla ];
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
|
|
|
}
|