diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/protonvpn-cli')
-rw-r--r-- | nixpkgs/pkgs/applications/networking/protonvpn-cli/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/networking/protonvpn-cli/default.nix b/nixpkgs/pkgs/applications/networking/protonvpn-cli/default.nix new file mode 100644 index 000000000000..e46909d2a7c3 --- /dev/null +++ b/nixpkgs/pkgs/applications/networking/protonvpn-cli/default.nix @@ -0,0 +1,37 @@ +{ lib, fetchFromGitHub, python3Packages, openvpn, dialog, iptables }: + +python3Packages.buildPythonApplication rec { + pname = "protonvpn-linux-cli"; + version = "2.2.6"; + + src = fetchFromGitHub { + owner = "protonvpn"; + repo = "linux-cli"; + rev = "v${version}"; + sha256 = "0y7v9ikrmy5dbjlpbpacp08gy838i8z54m8m4ps7ldk1j6kyia3n"; + }; + + propagatedBuildInputs = (with python3Packages; [ + requests + docopt + setuptools + jinja2 + pythondialog + ]) ++ [ + dialog + openvpn + iptables + ]; + + # No tests + doCheck = false; + + meta = with lib; { + description = "Linux command-line client for ProtonVPN"; + homepage = "https://github.com/protonvpn/linux-cli"; + maintainers = with maintainers; [ jtcoolen jefflabonte shamilton ]; + license = licenses.gpl3Plus; + platforms = platforms.linux; + mainProgram = "protonvpn"; + }; +} |