2021-10-06 02:50:18 +01:00
|
|
|
{ lib, buildPythonApplication, nix-update-script, python3Packages, fetchFromGitHub }:
|
2020-08-24 10:10:02 +01:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "vpn-slice";
|
2021-10-06 02:50:18 +01:00
|
|
|
version = "0.15";
|
2020-08-24 10:10:02 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dlenski";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-10-06 02:50:18 +01:00
|
|
|
sha256 = "sha256-9JnRuJkpcgW1cEgJPiqFDYotNSCl7XcmbHS6D4E13gM=";
|
2020-08-24 10:10:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3Packages; [ setproctitle dnspython ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-10-06 02:50:18 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2020-08-24 10:10:02 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|