ndn-tools: fix build after libpcap update

This commit is contained in:
Vladimír Čunát 2023-03-25 09:54:06 +01:00
parent eb157e657a
commit f4933e2243
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -21,6 +21,17 @@ stdenv.mkDerivation rec {
sha256 = "sha256-28sPgo2nq5AhIzZmvDz38echGPzKDzNm2J6iIao4yL8=";
};
# Hacky workaround for new pcap-config.
postPatch = ''
patch -p1 <<EOF
--- a/tools/dump/wscript
+++ b/tools/dump/wscript
@@ -5 +5 @@
- conf.check_cfg(package='libpcap', uselib_store='PCAP',
+ conf.check_cfg(package="", uselib_store='PCAP',
EOF
'';
nativeBuildInputs = [ pkg-config sphinx wafHook ];
buildInputs = [ libpcap ndn-cxx openssl ];