libpcap: move dev things to extra output

This commit is contained in:
Sandro Jäckel 2022-04-26 14:48:52 +02:00
parent d146577610
commit c96b21c78b
No known key found for this signature in database
GPG key ID: B1763F8651144063

View file

@ -6,6 +6,8 @@ stdenv.mkDerivation rec {
pname = "libpcap";
version = "1.10.1";
outputs = [ "out" "dev" ];
src = fetchurl {
url = "https://www.tcpdump.org/release/${pname}-${version}.tar.gz";
sha256 = "sha256-7ShfSsyvBTRPkJdXV7Pb/ncrpB0cQBwmSLf6RbcRvdQ=";
@ -27,6 +29,8 @@ stdenv.mkDerivation rec {
if [ "$dontDisableStatic" -ne "1" ]; then
rm -f $out/lib/libpcap.a
fi
moveToOutput "bin/pcap-config" "$dev"
'';
meta = {