libnet: move library to $out (#469339)

This commit is contained in:
dotlambda
2025-12-10 06:52:16 +00:00
committed by GitHub
3 changed files with 11 additions and 7 deletions
+5 -1
View File
@@ -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";
+4 -4
View File
@@ -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; {
+2 -2
View File
@@ -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";