11 buildPythonPackage rec {
12 pname = "namespaced-openvpn";
16 src = fetchFromGitHub {
19 rev = "a3fa42b2d8645272cbeb6856e26a7ea9547cb7d1";
20 sha256 = "+Fdaw9EGyFGH9/DSeVJczS8gPzAOv+qn+1U20zQBBqQ=";
30 substituteInPlace namespaced-openvpn \
31 --replace-fail "/usr/sbin/openvpn" "${openvpn}/bin/openvpn" \
32 --replace-fail "/sbin/ip" "${iproute2}/bin/ip" \
33 --replace-fail "/usr/bin/nsenter" "${util-linux}/bin/nsenter" \
34 --replace-fail "/bin/mount" "${util-linux}/bin/mount" \
35 --replace-fail "/bin/umount" "${util-linux}/bin/umount"
37 substituteInPlace seal-unseal-gateway \
38 --replace-fail "/sbin/iptables" "${iptables}/bin/iptables"
46 cp namespaced-openvpn seal-unseal-gateway $out/bin
50 homepage = "https://github.com/slingamn/namespaced-openvpn";
51 description = "Network namespace isolation for OpenVPN tunnels";
52 license = licenses.mit;
53 maintainers = [ maintainers.lodi ];
54 platforms = platforms.linux;
55 mainProgram = "namespaced-openvpn";