diff options
author | P. R. d. O <d.ol.rod@tutanota.com> | 2022-05-06 15:28:06 -0600 |
---|---|---|
committer | P. R. d. O <d.ol.rod@tutanota.com> | 2022-05-06 15:28:06 -0600 |
commit | ac247e0885f8638062c308181008b7c4afab2f1a (patch) | |
tree | bc5002f25219a7523a3f7d21ec6b76706c402872 /pkgs/applications/networking/protonvpn-cli | |
parent | 0ffb521ac872dba81e413700a792eb781ab77f0b (diff) |
protonvpn-cli_2: init at 2.2.11
Naming as protonvpn-cli_2 as this version uses openvpn to perform connections instead of NetworkManager as on the official version
Diffstat (limited to 'pkgs/applications/networking/protonvpn-cli')
-rw-r--r-- | pkgs/applications/networking/protonvpn-cli/2.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/applications/networking/protonvpn-cli/2.nix b/pkgs/applications/networking/protonvpn-cli/2.nix new file mode 100644 index 0000000000000..c3e9bd2ac2159 --- /dev/null +++ b/pkgs/applications/networking/protonvpn-cli/2.nix @@ -0,0 +1,51 @@ +{ lib +, buildPythonApplication +, fetchFromGitHub +, pythonOlder +, requests +, docopt +, pythondialog +, jinja2 +, distro +, dialog +, iptables +, openvpn }: + +buildPythonApplication rec { + pname = "protonvpn-cli_2"; + version = "2.2.11"; + format = "setuptools"; + + disabled = pythonOlder "3.5"; + + src = fetchFromGitHub { + owner = "Rafficer"; + repo = "linux-cli-community"; + # There is a tag and branch with the same name + rev = "refs/tags/v${version}"; + sha256 = "sha256-CWQpisJPBXbf+d5tCGuxfSQQZBeF36WFF4b6OSUn3GY="; + }; + + propagatedBuildInputs = [ + requests + docopt + pythondialog + jinja2 + distro + dialog + openvpn + iptables + ]; + + # No tests + doCheck = false; + + meta = with lib; { + description = "Linux command-line client for ProtonVPN using Openvpn"; + homepage = "https://github.com/Rafficer/linux-cli-community"; + maintainers = with maintainers; [ jtcoolen jefflabonte shamilton ]; + license = licenses.gpl3Plus; + platforms = platforms.linux; + mainProgram = "protonvpn"; + }; +} |