about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/msilbc
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/msilbc')
-rw-r--r--nixpkgs/pkgs/development/libraries/msilbc/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/msilbc/default.nix b/nixpkgs/pkgs/development/libraries/msilbc/default.nix
new file mode 100644
index 000000000000..b5eaee26aa03
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/msilbc/default.nix
@@ -0,0 +1,25 @@
+{ lib, stdenv, fetchurl, ilbc, mediastreamer, pkg-config }:
+
+stdenv.mkDerivation rec {
+  pname = "msilbc";
+  version = "2.1.2";
+
+  src = fetchurl {
+    url = "mirror://savannah/linphone/plugins/sources/${pname}-${version}.tar.gz";
+    sha256 = "07j02y994ybh274fp7ydjvi76h34y2c34ndwjpjfcwwr03b48cfp";
+  };
+
+  propagatedBuildInputs = [ ilbc mediastreamer ];
+  nativeBuildInputs = [ pkg-config ];
+
+  configureFlags = [
+    "ILBC_LIBS=ilbc" "ILBC_CFLAGS=-I${ilbc}/include"
+    "MEDIASTREAMER_LIBS=mediastreamer" "MEDIASTREAMER_CFLAGS=-I${mediastreamer}/include"
+  ];
+
+  meta = with lib; {
+    description = "Mediastreamer plugin for the iLBC audio codec";
+    platforms = platforms.linux;
+    license = licenses.gpl2;
+  };
+}