pcap: Add missing include, fix w/musl

This commit is contained in:
Will Dietz 2018-12-19 11:59:58 -06:00
parent b2e71e942d
commit 7bf70fe520

View file

@ -25,6 +25,8 @@ stdenv.mkDerivation rec {
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace configure --replace " -arch i386" ""
'' + ''
sed -i '1i#include <limits.h>' pcap-usb-linux.c
'';
preInstall = ''mkdir -p $out/bin'';