summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorJack Baldry <jack.baldry@grafana.com>2020-08-24 10:10:02 +0100
committerJack Baldry <jack.baldry@grafana.com>2020-08-24 10:10:02 +0100
commit62b812fbc0864bf03e3fba267eff32f2794cb67a (patch)
treef5fe2846f986632229a20340b5326d04a08ad6e0 /pkgs
parentd2e6750cffaf920940f12045128bcd05b917f38c (diff)
downloadnixpkgs-62b812fbc0864bf03e3fba267eff32f2794cb67a.tar
nixpkgs-62b812fbc0864bf03e3fba267eff32f2794cb67a.tar.gz
nixpkgs-62b812fbc0864bf03e3fba267eff32f2794cb67a.tar.bz2
nixpkgs-62b812fbc0864bf03e3fba267eff32f2794cb67a.tar.lz
nixpkgs-62b812fbc0864bf03e3fba267eff32f2794cb67a.tar.xz
nixpkgs-62b812fbc0864bf03e3fba267eff32f2794cb67a.tar.zst
nixpkgs-62b812fbc0864bf03e3fba267eff32f2794cb67a.zip
vpn-slice: init at 0.14
Python tool for convenient configuration of a split tunnel VPN

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/networking/vpn-slice/default.nix25
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/tools/networking/vpn-slice/default.nix b/pkgs/tools/networking/vpn-slice/default.nix
new file mode 100644
index 00000000000..9511c214c08
--- /dev/null
+++ b/pkgs/tools/networking/vpn-slice/default.nix
@@ -0,0 +1,25 @@
+{ lib, buildPythonApplication, python3Packages, fetchFromGitHub }:
+
+buildPythonApplication rec {
+  pname = "vpn-slice";
+  version = "0.14";
+
+  src = fetchFromGitHub {
+    owner = "dlenski";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "1z2mdl3arzl95zrj4ir57f762gcimmmq5nk91j679cshxz4snxyr";
+  };
+
+  propagatedBuildInputs = with python3Packages; [ setproctitle dnspython ];
+
+  doCheck = false;
+
+  meta = with lib; {
+    homepage = "https://github.com/dlenski/vpn-slice";
+    description =
+      "vpnc-script replacement for easy and secure split-tunnel VPN setup";
+    license = licenses.gpl3;
+    maintainers = with maintainers; [ jdbaldry ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index a643a0f8fa8..5c4066912c9 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -7293,6 +7293,8 @@ in
 
   vpnc = callPackage ../tools/networking/vpnc { };
 
+  vpn-slice = python3Packages.callPackage ../tools/networking/vpn-slice { };
+
   vp = callPackage ../applications/misc/vp {
     # Enable next line for console graphics. Note that
     # it requires `sixel` enabled terminals such as mlterm