libnet: move library to $out (#469339)
This commit is contained in:
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
outputs = [
|
||||
"out"
|
||||
"lib"
|
||||
"dev"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
@@ -39,6 +39,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
preConfigure = "./autogen.sh";
|
||||
|
||||
preFixup = ''
|
||||
moveToOutput bin/libnet-config "$dev"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/sam-github/libnet";
|
||||
description = "Portable framework for low-level network packet construction";
|
||||
|
||||
@@ -39,10 +39,10 @@ stdenv.mkDerivation rec {
|
||||
|
||||
makeFlags = [
|
||||
"PREFIX=$(out)"
|
||||
"OPENSSL_BASE=${openssl.dev}"
|
||||
"LIBEVENT_BASE=${libevent.dev}"
|
||||
"LIBPCAP_BASE=${libpcap}"
|
||||
"LIBNET_BASE=${libnet}"
|
||||
"OPENSSL_BASE=${lib.getDev openssl}"
|
||||
"LIBEVENT_BASE=${lib.getDev libevent}"
|
||||
"LIBPCAP_BASE=${lib.getDev libpcap}"
|
||||
"LIBNET_BASE=${lib.getDev libnet}"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -39,8 +39,8 @@ stdenv.mkDerivation {
|
||||
autoreconfPhase = "./autogen.sh";
|
||||
|
||||
configureFlags = [
|
||||
"--with-pcap-includes=${libpcap}/include"
|
||||
"--with-libnet-includes=${libnet}/include"
|
||||
"--with-pcap-includes=${lib.getDev libpcap}/include"
|
||||
"--with-libnet-includes=${lib.getDev libnet}/include"
|
||||
]
|
||||
++ lib.optional (!enableAdmin) "--disable-admin"
|
||||
++ lib.optional (!withGtk) "--disable-gtk";
|
||||
|
||||
Reference in New Issue
Block a user