summary refs log tree commit diff
path: root/pkgs/development/libraries/msilbc/default.nix
blob: cfb02ddbf9ddb5aa2b6371c66026a8c549208218 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ stdenv, fetchurl, ilbc, mediastreamer, pkgconfig }:

stdenv.mkDerivation rec {
  name = "msilbc-2.1.2";

  src = fetchurl {
    url = "mirror://savannah/linphone/plugins/sources/${name}.tar.gz";
    sha256 = "07j02y994ybh274fp7ydjvi76h34y2c34ndwjpjfcwwr03b48cfp";
  };

  propagatedBuildInputs = [ ilbc mediastreamer ];
  nativeBuildInputs = [ pkgconfig ];

  configureFlags = [
    "ILBC_LIBS=ilbc" "ILBC_CFLAGS=-I${ilbc}/include"
    "MEDIASTREAMER_LIBS=mediastreamer" "MEDIASTREAMER_CFLAGS=-I${mediastreamer}/include"
  ];

  meta = {
    platforms = stdenv.lib.platforms.linux;
  };
}