Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 60 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonApplication, 4 pythonOlder, 5 fetchFromGitHub, 6 protonvpn-nm-lib, 7 pythondialog, 8 dialog, 9 wrapGAppsNoGuiHook, 10 gobject-introspection, 11 glib, 12}: 13 14buildPythonApplication rec { 15 pname = "protonvpn-cli"; 16 version = "3.13.0"; 17 format = "setuptools"; 18 19 disabled = pythonOlder "3.5"; 20 21 src = fetchFromGitHub { 22 owner = "protonvpn"; 23 repo = "linux-cli"; 24 tag = version; 25 sha256 = "sha256-KhfogC23i7THe6YZJ6Sy1+q83vZupHsS69NurHCeo8I="; 26 }; 27 28 nativeBuildInputs = [ 29 wrapGAppsNoGuiHook 30 gobject-introspection 31 ]; 32 33 buildInputs = [ 34 glib 35 ]; 36 37 propagatedBuildInputs = [ 38 protonvpn-nm-lib 39 pythondialog 40 dialog 41 ]; 42 43 dontWrapGApps = true; 44 45 makeWrapperArgs = [ 46 "\${gappsWrapperArgs[@]}" 47 ]; 48 49 # Project has a dummy test 50 doCheck = false; 51 52 meta = with lib; { 53 description = "Linux command-line client for ProtonVPN"; 54 homepage = "https://github.com/protonvpn/linux-cli"; 55 maintainers = [ ]; 56 license = licenses.gpl3Plus; 57 platforms = platforms.linux; 58 mainProgram = "protonvpn-cli"; 59 }; 60}