about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/sofia-sip
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/sofia-sip')
-rw-r--r--nixpkgs/pkgs/development/libraries/sofia-sip/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/sofia-sip/default.nix b/nixpkgs/pkgs/development/libraries/sofia-sip/default.nix
new file mode 100644
index 000000000000..b9f34eeb9748
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/sofia-sip/default.nix
@@ -0,0 +1,23 @@
+{ lib, stdenv, fetchFromGitHub, glib, openssl, pkg-config, autoreconfHook, SystemConfiguration }:
+
+stdenv.mkDerivation rec {
+  pname = "sofia-sip";
+  version = "1.13.17";
+
+  src = fetchFromGitHub {
+    owner = "freeswitch";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-7QmK2UxEO5lC0KBDWB3bwKTy0Nc7WrdTLjoQYzezoaY=";
+  };
+
+  buildInputs = [ glib openssl ] ++ lib.optional stdenv.isDarwin SystemConfiguration;
+  nativeBuildInputs = [ autoreconfHook pkg-config ];
+
+  meta = with lib; {
+    description = "Open-source SIP User-Agent library, compliant with the IETF RFC3261 specification";
+    homepage = "https://github.com/freeswitch/sofia-sip";
+    platforms = platforms.unix;
+    license = licenses.lgpl2;
+  };
+}