treewide: strip more things in cross

Stripping reduces closure sizes.
This commit is contained in:
Matthew Bauer
2020-05-12 14:31:03 -05:00
parent e15ab2cda7
commit 34aff7f697
5 changed files with 4 additions and 18 deletions
@@ -22,12 +22,14 @@ stdenv.mkDerivation rec {
"ac_cv_linux_vers=2"
];
dontStrip = stdenv.hostPlatform != stdenv.buildPlatform;
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace configure --replace " -arch i386" ""
'';
postInstall = ''
rm -f $out/lib/libpcap.a
'';
meta = with stdenv.lib; {
homepage = "https://www.tcpdump.org";
description = "Packet Capture Library";