3 , buildPythonApplication
12 buildPythonApplication rec {
16 src = fetchFromGitHub {
20 sha256 = "sha256-T6VULLNRLWO4OcAsuTmhty6H4EhinyxQSg0dfv2DUJs=";
23 postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
24 substituteInPlace vpn_slice/mac.py \
25 --replace "'/sbin/route'" "'${unixtools.route}/bin/route'"
26 '' + lib.optionalString stdenv.hostPlatform.isLinux ''
27 substituteInPlace vpn_slice/linux.py \
28 --replace "'/sbin/ip'" "'${iproute2}/bin/ip'" \
29 --replace "'/sbin/iptables'" "'${iptables}/bin/iptables'"
32 propagatedBuildInputs = with python3Packages; [ setproctitle dnspython ];
37 updateScript = nix-update-script { };
41 homepage = "https://github.com/dlenski/vpn-slice";
43 "vpnc-script replacement for easy and secure split-tunnel VPN setup";
44 mainProgram = "vpn-slice";
45 license = licenses.gpl3;