libpcap: move dev things to extra output
This commit is contained in:
parent
d146577610
commit
c96b21c78b
1 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,8 @@ stdenv.mkDerivation rec {
|
||||||
pname = "libpcap";
|
pname = "libpcap";
|
||||||
version = "1.10.1";
|
version = "1.10.1";
|
||||||
|
|
||||||
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://www.tcpdump.org/release/${pname}-${version}.tar.gz";
|
url = "https://www.tcpdump.org/release/${pname}-${version}.tar.gz";
|
||||||
sha256 = "sha256-7ShfSsyvBTRPkJdXV7Pb/ncrpB0cQBwmSLf6RbcRvdQ=";
|
sha256 = "sha256-7ShfSsyvBTRPkJdXV7Pb/ncrpB0cQBwmSLf6RbcRvdQ=";
|
||||||
|
@ -27,6 +29,8 @@ stdenv.mkDerivation rec {
|
||||||
if [ "$dontDisableStatic" -ne "1" ]; then
|
if [ "$dontDisableStatic" -ne "1" ]; then
|
||||||
rm -f $out/lib/libpcap.a
|
rm -f $out/lib/libpcap.a
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
moveToOutput "bin/pcap-config" "$dev"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in a new issue