Loading pkgs/tools/networking/vpn-slice/default.nix +11 −5 Original line number Diff line number Diff line Loading @@ -13,10 +13,11 @@ buildPythonApplication rec { pname = "vpn-slice"; version = "0.16.1"; pyproject = true; src = fetchFromGitHub { owner = "dlenski"; repo = pname; repo = "vpn-slice"; rev = "v${version}"; sha256 = "sha256-T6VULLNRLWO4OcAsuTmhty6H4EhinyxQSg0dfv2DUJs="; }; Loading @@ -24,15 +25,20 @@ buildPythonApplication rec { postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' substituteInPlace vpn_slice/mac.py \ --replace "'/sbin/route'" "'${unixtools.route}/bin/route'" --replace-fail "'/sbin/route'" "'${unixtools.route}/bin/route'" '' + lib.optionalString stdenv.hostPlatform.isLinux '' substituteInPlace vpn_slice/linux.py \ --replace "'/sbin/ip'" "'${iproute2}/bin/ip'" \ --replace "'/sbin/iptables'" "'${iptables}/bin/iptables'" --replace-fail "'/sbin/ip'" "'${iproute2}/bin/ip'" \ --replace-fail "'/sbin/iptables'" "'${iptables}/bin/iptables'" ''; propagatedBuildInputs = with python3Packages; [ build-system = with python3Packages; [ setuptools ]; dependencies = with python3Packages; [ setuptools # can be removed with next package update, upstream no longer has a dependency on distutils setproctitle dnspython ]; Loading Loading
pkgs/tools/networking/vpn-slice/default.nix +11 −5 Original line number Diff line number Diff line Loading @@ -13,10 +13,11 @@ buildPythonApplication rec { pname = "vpn-slice"; version = "0.16.1"; pyproject = true; src = fetchFromGitHub { owner = "dlenski"; repo = pname; repo = "vpn-slice"; rev = "v${version}"; sha256 = "sha256-T6VULLNRLWO4OcAsuTmhty6H4EhinyxQSg0dfv2DUJs="; }; Loading @@ -24,15 +25,20 @@ buildPythonApplication rec { postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' substituteInPlace vpn_slice/mac.py \ --replace "'/sbin/route'" "'${unixtools.route}/bin/route'" --replace-fail "'/sbin/route'" "'${unixtools.route}/bin/route'" '' + lib.optionalString stdenv.hostPlatform.isLinux '' substituteInPlace vpn_slice/linux.py \ --replace "'/sbin/ip'" "'${iproute2}/bin/ip'" \ --replace "'/sbin/iptables'" "'${iptables}/bin/iptables'" --replace-fail "'/sbin/ip'" "'${iproute2}/bin/ip'" \ --replace-fail "'/sbin/iptables'" "'${iptables}/bin/iptables'" ''; propagatedBuildInputs = with python3Packages; [ build-system = with python3Packages; [ setuptools ]; dependencies = with python3Packages; [ setuptools # can be removed with next package update, upstream no longer has a dependency on distutils setproctitle dnspython ]; Loading