summary refs log tree commit diff
path: root/pkgs/servers/sip
diff options
context:
space:
mode:
authorPatrick Mahoney <pat@polycrystal.org>2018-12-10 16:49:26 -0600
committerPatrick Mahoney <pat@polycrystal.org>2018-12-10 16:49:26 -0600
commit5234948642f5a257a44fe6a5f1f11e3e0e5e71f8 (patch)
treeffae1c4a16a49d236ef1aa7e9f15e6f48c7e9280 /pkgs/servers/sip
parent189fbae95b4f328287777e6e752a20f67f6d3eef (diff)
downloadnixpkgs-5234948642f5a257a44fe6a5f1f11e3e0e5e71f8.tar
nixpkgs-5234948642f5a257a44fe6a5f1f11e3e0e5e71f8.tar.gz
nixpkgs-5234948642f5a257a44fe6a5f1f11e3e0e5e71f8.tar.bz2
nixpkgs-5234948642f5a257a44fe6a5f1f11e3e0e5e71f8.tar.lz
nixpkgs-5234948642f5a257a44fe6a5f1f11e3e0e5e71f8.tar.xz
nixpkgs-5234948642f5a257a44fe6a5f1f11e3e0e5e71f8.tar.zst
nixpkgs-5234948642f5a257a44fe6a5f1f11e3e0e5e71f8.zip
freeswitch: build on darwin
- relax platform requirement
- include required apple framework
Diffstat (limited to 'pkgs/servers/sip')
-rw-r--r--pkgs/servers/sip/freeswitch/default.nix9
1 files changed, 6 insertions, 3 deletions
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;
   };
 }