libpcap: disable universal build for libpcap on darwin

This allows building libpcap on top of #105026.
wip/yesman
Ivan Babrou 3 years ago committed by github-actions[bot]
parent 41d270c2aa
commit 4492265eb8
  1. 6
      pkgs/development/libraries/libpcap/default.nix

@ -21,13 +21,11 @@ stdenv.mkDerivation rec {
linux = "linux";
darwin = "bpf";
}.${stdenv.hostPlatform.parsed.kernel.name})
] ++ optionals stdenv.isDarwin [
"--disable-universal"
] ++ optionals (stdenv.hostPlatform == stdenv.buildPlatform)
[ "ac_cv_linux_vers=2" ];
prePatch = optionalString stdenv.isDarwin ''
substituteInPlace configure --replace " -arch i386" ""
'';
postInstall = ''
if [ "$dontDisableStatic" -ne "1" ]; then
rm -f $out/lib/libpcap.a

Loading…
Cancel
Save