Merge pull request #185853 from wegank/libproxy-darwin

libproxy: fix build on darwin
This commit is contained in:
Jörg Thalheim 2022-08-10 07:57:06 +01:00 committed by GitHub
commit ae408030f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,7 @@
{ lib, stdenv
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, pkg-config
, cmake
, zlib
@ -28,6 +30,14 @@ stdenv.mkDerivation rec {
hash = "sha256-pqj1LwRdOK2CUu3hYIsogQIXxWzShDuKEbDTbtWkgnQ=";
};
patches = lib.optionals stdenv.isDarwin [
# https://github.com/libproxy/libproxy/pull/189
(fetchpatch {
url = "https://github.com/libproxy/libproxy/commit/4331b9db427ce2c25ff5eeb597bec4bc35ed1a0b.patch";
sha256 = "sha256-uTh3rYVvEke1iWVHsT3Zj2H1F+gyLrffcmyt0JEKaCA=";
})
];
outputs = [ "out" "dev" "py3" ];
nativeBuildInputs = [