commit
00e5877c2f
@ -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"; |
||||
}; |
||||
} |
@ -1,37 +1,41 @@ |
||||
{ lib, fetchFromGitHub, python3Packages, openvpn, dialog, iptables }: |
||||
{ lib |
||||
, buildPythonApplication |
||||
, pythonOlder |
||||
, fetchFromGitHub |
||||
, protonvpn-nm-lib |
||||
, pythondialog |
||||
, dialog |
||||
}: |
||||
|
||||
python3Packages.buildPythonApplication rec { |
||||
pname = "protonvpn-linux-cli"; |
||||
version = "2.2.6"; |
||||
buildPythonApplication rec { |
||||
pname = "protonvpn-cli"; |
||||
version = "3.11.1"; |
||||
format = "setuptools"; |
||||
|
||||
disabled = pythonOlder "3.5"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "protonvpn"; |
||||
repo = "linux-cli"; |
||||
rev = "v${version}"; |
||||
sha256 = "0y7v9ikrmy5dbjlpbpacp08gy838i8z54m8m4ps7ldk1j6kyia3n"; |
||||
rev = version; |
||||
sha256 = "sha256-u+POtUz7NoGS23aOmvDCZPUp2HW1xXGtfbZR88cWCBc="; |
||||
}; |
||||
|
||||
propagatedBuildInputs = (with python3Packages; [ |
||||
requests |
||||
docopt |
||||
setuptools |
||||
jinja2 |
||||
pythondialog |
||||
]) ++ [ |
||||
dialog |
||||
openvpn |
||||
iptables |
||||
]; |
||||
propagatedBuildInputs = [ |
||||
protonvpn-nm-lib |
||||
pythondialog |
||||
dialog |
||||
]; |
||||
|
||||
# No tests |
||||
# Project has a dummy test |
||||
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 ]; |
||||
maintainers = with maintainers; [ wolfangaukang ]; |
||||
license = licenses.gpl3Plus; |
||||
platforms = platforms.linux; |
||||
mainProgram = "protonvpn"; |
||||
mainProgram = "protonvpn-cli"; |
||||
}; |
||||
} |
||||
|
@ -0,0 +1,27 @@ |
||||
{ fetchzip, lib }: |
||||
|
||||
let |
||||
version = "5.0"; |
||||
in |
||||
fetchzip { |
||||
name = "khmeros-${version}"; |
||||
url = "mirror://debian/pool/main/f/fonts-khmeros/fonts-khmeros_${version}.orig.tar.xz"; |
||||
sha256 = "sha256-pS+7RQbGwlBxdCfSVxHmARCAkZrZttwYNlV/CrxqI+w="; |
||||
|
||||
postFetch = '' |
||||
unpackDir="$TMPDIR/unpack" |
||||
mkdir "$unpackDir" |
||||
cd "$unpackDir" |
||||
tar xf "$downloadedFile" --strip-components=1 |
||||
mkdir -p $out/share/fonts |
||||
cp *.ttf $out/share/fonts |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "KhmerOS Unicode fonts for the Khmer language"; |
||||
homepage = "http://www.khmeros.info/"; |
||||
license = licenses.gpl2Plus; |
||||
maintainers = with lib.maintainers; [ serge ]; |
||||
platforms = platforms.all; |
||||
}; |
||||
} |
@ -0,0 +1,23 @@ |
||||
{ fetchzip, lib }: |
||||
|
||||
let |
||||
version = "0.6"; |
||||
in |
||||
fetchzip { |
||||
name = "lklug-sinhala-${version}"; |
||||
url = "mirror://debian/pool/main/f/fonts-lklug-sinhala/fonts-lklug-sinhala_${version}.orig.tar.xz"; |
||||
sha256 = "sha256-Fy+QnAajA4yLf/I1vOQll5pRd0ZLfLe8UXq4XMC9qNc="; |
||||
|
||||
postFetch = '' |
||||
mkdir -p $out/share/fonts |
||||
tar xf $downloadedFile --strip-components=1 -C $out/share/fonts fonts-lklug-sinhala-${version}/lklug.ttf |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "Unicode Sinhala font by Lanka Linux User Group"; |
||||
homepage = "http://www.lug.lk/fonts/lklug"; |
||||
license = licenses.gpl2Plus; |
||||
maintainers = with lib.maintainers; [ serge ]; |
||||
platforms = platforms.all; |
||||
}; |
||||
} |
@ -0,0 +1,27 @@ |
||||
{ fetchzip, lib }: |
||||
|
||||
let |
||||
version = "20170925"; |
||||
in |
||||
fetchzip { |
||||
name = "nanum-${version}"; |
||||
url = "mirror://ubuntu/pool/universe/f/fonts-nanum/fonts-nanum_${version}.orig.tar.xz"; |
||||
sha256 = "sha256-lSTeQEuMmlQxiQqrx9tNScifE8nMOUDJF3lCfoAFIJk="; |
||||
|
||||
postFetch = '' |
||||
unpackDir="$TMPDIR/unpack" |
||||
mkdir "$unpackDir" |
||||
cd "$unpackDir" |
||||
tar xf "$downloadedFile" --strip-components=1 |
||||
mkdir -p $out/share/fonts |
||||
cp *.ttf $out/share/fonts |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "Nanum Korean font set"; |
||||
homepage = "https://hangeul.naver.com/font"; |
||||
license = licenses.ofl; |
||||
maintainers = with lib.maintainers; [ serge ]; |
||||
platforms = platforms.all; |
||||
}; |
||||
} |
@ -0,0 +1,27 @@ |
||||
{ fetchzip, lib }: |
||||
|
||||
let |
||||
version = "3.003"; |
||||
in |
||||
fetchzip { |
||||
name = "sil-padauk-${version}"; |
||||
url = "mirror://debian/pool/main/f/fonts-sil-padauk/fonts-sil-padauk_${version}.orig.tar.xz"; |
||||
sha256 = "sha256-oK+EufbvsqXunTgcWj+DiNdfpRl+VPO60Wc9KYjZv5A="; |
||||
|
||||
postFetch = '' |
||||
unpackDir="$TMPDIR/unpack" |
||||
mkdir "$unpackDir" |
||||
cd "$unpackDir" |
||||
tar xf "$downloadedFile" --strip-components=1 |
||||
mkdir -p $out/share/fonts |
||||
cp *.ttf $out/share/fonts |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "Burmese Unicode 6 TrueType font"; |
||||
homepage = "https://software.sil.org/padauk"; |
||||
license = licenses.ofl; |
||||
maintainers = with lib.maintainers; [ serge ]; |
||||
platforms = platforms.all; |
||||
}; |
||||
} |
@ -0,0 +1,27 @@ |
||||
{ fetchzip, lib }: |
||||
|
||||
let |
||||
version = "00303.01"; |
||||
in |
||||
fetchzip { |
||||
name = "takao-${version}"; |
||||
url = "mirror://ubuntu/pool/universe/f/fonts-takao/fonts-takao_${version}.orig.tar.gz"; |
||||
sha256 = "sha256-TlPq3iIv8vHlxYu5dkX/Lf6ediYKQaQ5uMbFvypQM/w="; |
||||
|
||||
postFetch = '' |
||||
unpackDir="$TMPDIR/unpack" |
||||
mkdir "$unpackDir" |
||||
cd "$unpackDir" |
||||
tar xf "$downloadedFile" --strip-components=1 |
||||
mkdir -p $out/share/fonts |
||||
cp *.ttf $out/share/fonts |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "Japanese TrueType Gothic, P Gothic, Mincho, P Mincho fonts"; |
||||
homepage = "https://launchpad.net/takao-fonts"; |
||||
license = licenses.ipa; |
||||
maintainers = with lib.maintainers; [ serge ]; |
||||
platforms = platforms.all; |
||||
}; |
||||
} |
@ -0,0 +1,22 @@ |
||||
{ fetchzip, lib }: |
||||
|
||||
let |
||||
version = "1.901b"; |
||||
in |
||||
fetchzip { |
||||
name = "tibetan-machine-${version}"; |
||||
url = "mirror://debian/pool/main/f/fonts-tibetan-machine/fonts-tibetan-machine_${version}.orig.tar.bz2"; |
||||
sha256 = "sha256-A+RgpFLsP4iTzl0PMRHaNzWGbDR5Qa38lRegNJ96ULo="; |
||||
|
||||
postFetch = '' |
||||
mkdir -p $out/share/fonts |
||||
tar xf $downloadedFile --strip-components=1 -C $out/share/fonts ttf-tmuni-${version}/TibMachUni-${version}.ttf |
||||
''; |
||||
|
||||
meta = with lib; { |
||||
description = "Tibetan Machine - an OpenType Tibetan, Dzongkha and Ladakhi font"; |
||||
license = licenses.gpl2Plus; |
||||
maintainers = with lib.maintainers; [ serge ]; |
||||
platforms = platforms.all; |
||||
}; |
||||
} |
@ -0,0 +1,22 @@ |
||||
From 2867f022aad754fe54d95222b3ae52f6e7f14c2f Mon Sep 17 00:00:00 2001
|
||||
From: "P. R. d. O" <d.ol.rod@tutanota.com>
|
||||
Date: Wed, 27 Apr 2022 21:49:12 -0600
|
||||
Subject: [PATCH] Patching GIRepository
|
||||
|
||||
---
|
||||
protonvpn_nm_lib/__init__.py | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/protonvpn_nm_lib/__init__.py b/protonvpn_nm_lib/__init__.py
|
||||
index e69de29..00b95f4 100644
|
||||
--- a/protonvpn_nm_lib/__init__.py
|
||||
+++ b/protonvpn_nm_lib/__init__.py
|
||||
@@ -0,0 +1,5 @@
|
||||
+import gi
|
||||
+gi.require_version('GIRepository', '2.0')
|
||||
+from gi.repository import GIRepository
|
||||
+repo = GIRepository.Repository.get_default()
|
||||
+repo.prepend_search_path('@networkmanager_path@')
|
||||
--
|
||||
2.35.1
|
||||
|
@ -0,0 +1,25 @@ |
||||
{ lib, buildGoModule, fetchFromGitHub }: |
||||
|
||||
buildGoModule { |
||||
pname = "cidrgrep"; |
||||
version = "unstable-2020-11-17"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "tomdoherty"; |
||||
repo = "cidrgrep"; |
||||
rev = "8ad5af533e8dc33ea18ff19b7c6a41550748fe0e"; |
||||
sha256 = "sha256:0jvwm9jq5jd270b6l9nkvc5pr3rgf158sw83lrprmwmz7r4mr786"; |
||||
}; |
||||
|
||||
vendorSha256 = "sha256:0sjjj9z1dhilhpc8pq4154czrb79z9cm044jvn75kxcjv6v5l2m5"; |
||||
|
||||
postInstall = '' |
||||
mv $out/bin/cmd $out/bin/cidrgrep |
||||
''; |
||||
|
||||
meta = { |
||||
description = "Like grep but for IPv4 CIDRs"; |
||||
maintainers = with lib.maintainers; [ das_j ]; |
||||
license = lib.licenses.mit; |
||||
}; |
||||
} |
Loading…
Reference in new issue