Unverified Commit e176bec0 authored by Franz Pletz's avatar Franz Pletz Committed by GitHub
Browse files

lldpd: build on macOS (#350485)

parents c04462bf 69f95d62
Loading
Loading
Loading
Loading
+18 −4
Original line number Diff line number Diff line
{ stdenv, lib, fetchurl, pkg-config, removeReferencesTo
, libevent, readline, net-snmp, openssl
{ stdenv
, Foundation
, fetchurl
, lib
, libevent
, net-snmp
, openssl
, pkg-config
, readline
, removeReferencesTo
}:

stdenv.mkDerivation rec {
@@ -16,10 +24,16 @@ stdenv.mkDerivation rec {
    "--enable-pie"
    "--with-snmp"
    "--with-systemdsystemunitdir=\${out}/lib/systemd/system"
  ] ++ lib.optionals stdenv.hostPlatform.isDarwin [
    "--with-launchddaemonsdir=no"
    "--with-privsep-chroot=/var/empty"
    "--with-privsep-group=nogroup"
    "--with-privsep-user=nobody"
  ];

  nativeBuildInputs = [ pkg-config removeReferencesTo ];
  buildInputs = [ libevent readline net-snmp openssl ];
  buildInputs = [ libevent readline net-snmp openssl ]
    ++ lib.optionals stdenv.hostPlatform.isDarwin [ Foundation ];

  enableParallelBuilding = true;

@@ -34,6 +48,6 @@ stdenv.mkDerivation rec {
    homepage = "https://lldpd.github.io/";
    license = licenses.isc;
    maintainers = with maintainers; [ fpletz ];
    platforms = platforms.linux;
    platforms = platforms.unix;
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -9163,7 +9163,9 @@ with pkgs;
  lksctp-tools = callPackage ../os-specific/linux/lksctp-tools { };
  lldpd = callPackage ../tools/networking/lldpd { };
  lldpd = callPackage ../tools/networking/lldpd {
    inherit (darwin.apple_sdk.frameworks) Foundation;
  };
  llm = with python3Packages; toPythonApplication llm;