mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
python3Packages.libasyncns: fix build for darwin
This commit is contained in:
parent
a907da6e63
commit
15f425ae9c
1 changed files with 12 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue