mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
vpn-slice: replace propagatedInputs with substituteInPlace
Does not rely on python builder specific magic to provide the runtime binaries this way.
This commit is contained in:
parent
46e4e8ad83
commit
5b83108257
@ -20,13 +20,16 @@ buildPythonApplication rec {
|
||||
sha256 = "sha256-T6VULLNRLWO4OcAsuTmhty6H4EhinyxQSg0dfv2DUJs=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [ setproctitle dnspython ]
|
||||
++ lib.optionals stdenv.isLinux [
|
||||
iproute2
|
||||
iptables
|
||||
] ++ lib.optionals stdenv.isDarwin [
|
||||
unixtools.route
|
||||
];
|
||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace vpn_slice/mac.py \
|
||||
--replace "'/sbin/route'" "'${unixtools.route}/bin/route'"
|
||||
'' + lib.optionalString stdenv.isLinux ''
|
||||
substituteInPlace vpn_slice/linux.py \
|
||||
--replace "'/sbin/ip'" "'${iproute2}/bin/ip'" \
|
||||
--replace "'/sbin/iptables'" "'${iptables}/bin/iptables'"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [ setproctitle dnspython ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user