libpcap: remove static library unless dontDisableStatic is set
This commit is contained in:
parent
6767a2c034
commit
ec84e89e58
@ -28,6 +28,12 @@ stdenv.mkDerivation rec {
|
|||||||
substituteInPlace configure --replace " -arch i386" ""
|
substituteInPlace configure --replace " -arch i386" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
if [ "$dontDisableStatic" -ne "1" ]; then
|
||||||
|
rm -f $out/lib/libpcap.a
|
||||||
|
fi
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://www.tcpdump.org";
|
homepage = "https://www.tcpdump.org";
|
||||||
description = "Packet Capture Library";
|
description = "Packet Capture Library";
|
||||||
|
@ -14,7 +14,7 @@ let
|
|||||||
};
|
};
|
||||||
pcap = symlinkJoin {
|
pcap = symlinkJoin {
|
||||||
inherit (libpcap) name;
|
inherit (libpcap) name;
|
||||||
paths = [ libpcap ];
|
paths = [ (libpcap.overrideAttrs(old: { dontDisableStatic = true; })) ];
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
cp -rs $out/include/pcap $out/include/net
|
cp -rs $out/include/pcap $out/include/net
|
||||||
# prevent references to libpcap
|
# prevent references to libpcap
|
||||||
|
Loading…
x
Reference in New Issue
Block a user