Merge pull request #36971 from volth/no-pandoc-on-i686

sshuttle: fix build on i686-linux
This commit is contained in:
Jörg Thalheim 2018-03-14 09:34:08 +00:00 committed by GitHub
commit 97c60ab34a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ python3Packages.buildPythonApplication rec {
})
];
nativeBuildInputs = [ makeWrapper pandoc python3Packages.setuptools_scm ];
nativeBuildInputs = [ makeWrapper python3Packages.setuptools_scm ] ++ stdenv.lib.optional (stdenv.system != "i686-linux") pandoc;
buildInputs =
[ coreutils openssh ] ++
stdenv.lib.optionals stdenv.isLinux [ iptables nettools procps ];
@ -29,6 +29,10 @@ python3Packages.buildPythonApplication rec {
# uses Python 3, so it should be fine.
doCheck = true;
checkPhase = ''
py.test -k "${stdenv.lib.optionalString stdenv.isDarwin "not test_parse_subnetport_ip6"}"
'';
postInstall = let
mapPath = f: x: stdenv.lib.concatStringsSep ":" (map f x);
in ''