Skip to content

Commit f9db9c8

Browse files
berdarioLnL7
authored andcommittedSep 26, 2017
sshuttle: fix tests for darwin
(cherry picked from commit 7055b4a)
1 parent 3dcd59f commit f9db9c8

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed
 

Diff for: ‎pkgs/tools/security/sshuttle/default.nix

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{ stdenv, python3Packages, fetchurl, makeWrapper, pandoc
2-
, coreutils, iptables, nettools, openssh, procps }:
3-
2+
, coreutils, iptables, nettools, openssh, procps, fetchpatch }:
3+
44
python3Packages.buildPythonApplication rec {
55
name = "sshuttle-${version}";
66
version = "0.78.3";
@@ -10,7 +10,13 @@ python3Packages.buildPythonApplication rec {
1010
url = "mirror://pypi/s/sshuttle/${name}.tar.gz";
1111
};
1212

13-
patches = [ ./sudo.patch ];
13+
patches = [
14+
./sudo.patch
15+
(fetchpatch {
16+
url = "https://github.com/sshuttle/sshuttle/commit/91aa6ff625f7c89a19e6f8702425cfead44a146f.patch";
17+
sha256 = "0sqcc6kj53wlas2d3klbyilhns6vakzwbbp8y7j9wlmbnc530pks";
18+
})
19+
];
1420

1521
nativeBuildInputs = [ makeWrapper pandoc python3Packages.setuptools_scm ];
1622
buildInputs =
@@ -29,7 +35,7 @@ python3Packages.buildPythonApplication rec {
2935
wrapProgram $out/bin/sshuttle \
3036
--prefix PATH : "${mapPath (x: "${x}/bin") buildInputs}" \
3137
'';
32-
38+
3339
meta = with stdenv.lib; {
3440
homepage = https://github.com/sshuttle/sshuttle/;
3541
description = "Transparent proxy server that works as a poor man's VPN";

0 commit comments

Comments
 (0)
Please sign in to comment.