mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
python3Packages.libasyncns: fix build for darwin
This commit is contained in:
parent
a907da6e63
commit
15f425ae9c
@ -1,5 +1,10 @@
|
||||
{ lib, buildPythonPackage, fetchurl
|
||||
, libasyncns, pkg-config }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, buildPythonPackage
|
||||
, fetchurl
|
||||
, libasyncns
|
||||
, pkg-config
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "libasyncns-python";
|
||||
@ -12,6 +17,11 @@ buildPythonPackage rec {
|
||||
|
||||
patches = [ ./libasyncns-fix-res-consts.patch ];
|
||||
|
||||
postPatch = lib.optionalString stdenv.isDarwin ''
|
||||
substituteInPlace resquery.c \
|
||||
--replace '<arpa/nameser.h>' '<arpa/nameser_compat.h>'
|
||||
'';
|
||||
|
||||
buildInputs = [ libasyncns ];
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
doCheck = false; # requires network access
|
||||
|
Loading…
Reference in New Issue
Block a user