diff --git a/pkgs/development/libraries/ldns/default.nix b/pkgs/development/libraries/ldns/default.nix index c4120e5bb0e..468ab90edb5 100644 --- a/pkgs/development/libraries/ldns/default.nix +++ b/pkgs/development/libraries/ldns/default.nix @@ -65,7 +65,7 @@ stdenv.mkDerivation rec { description = "Library with the aim of simplifying DNS programming in C"; license = licenses.bsd3; homepage = http://www.nlnetlabs.nl/projects/ldns/; - platforms = platforms.linux; + platforms = platforms.unix; maintainers = with maintainers; [ jgeerds ]; }; } diff --git a/pkgs/servers/sip/freeswitch/default.nix b/pkgs/servers/sip/freeswitch/default.nix index 32acba433b1..ab4147230a9 100644 --- a/pkgs/servers/sip/freeswitch/default.nix +++ b/pkgs/servers/sip/freeswitch/default.nix @@ -1,6 +1,9 @@ { fetchurl, stdenv, ncurses, curl, pkgconfig, gnutls, readline , openssl, perl, sqlite, libjpeg, speex, pcre -, ldns, libedit, yasm, which, lua, libopus, libsndfile }: +, ldns, libedit, yasm, which, lua, libopus, libsndfile + +, SystemConfiguration +}: stdenv.mkDerivation rec { name = "freeswitch-1.6.20"; @@ -20,7 +23,7 @@ stdenv.mkDerivation rec { openssl ncurses curl gnutls readline perl libjpeg sqlite pcre speex ldns libedit yasm which lua libopus libsndfile - ]; + ] ++ stdenv.lib.optionals stdenv.isDarwin [ SystemConfiguration ]; NIX_CFLAGS_COMPILE = "-Wno-error"; @@ -31,6 +34,6 @@ stdenv.mkDerivation rec { homepage = https://freeswitch.org/; license = stdenv.lib.licenses.mpl11; maintainers = with stdenv.lib.maintainers; [ ]; - platforms = with stdenv.lib.platforms; linux; + platforms = with stdenv.lib.platforms; unix; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 488e9359ee3..6bd56de96b8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13512,6 +13512,7 @@ in freeswitch = callPackage ../servers/sip/freeswitch { openssl = openssl_1_0_2; + inherit (darwin.apple_sdk.frameworks) SystemConfiguration; }; fusionInventory = callPackage ../servers/monitoring/fusion-inventory { };