Unverified Commit 647a62f2 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

libnet: move library to $out (#469339)

parents 85a703d9 c5574ef6
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
@@ -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";