nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 ilbc,
6 linphonePackages,
7 pkg-config,
8}:
9
10stdenv.mkDerivation rec {
11 pname = "msilbc";
12 version = "2.1.2";
13
14 src = fetchurl {
15 url = "mirror://savannah/linphone/plugins/sources/${pname}-${version}.tar.gz";
16 sha256 = "07j02y994ybh274fp7ydjvi76h34y2c34ndwjpjfcwwr03b48cfp";
17 };
18
19 propagatedBuildInputs = [
20 ilbc
21 linphonePackages.mediastreamer2
22 ];
23 nativeBuildInputs = [ pkg-config ];
24
25 configureFlags = [
26 "ILBC_LIBS=ilbc"
27 "ILBC_CFLAGS=-I${ilbc}/include"
28 "MEDIASTREAMER_LIBS=mediastreamer"
29 "MEDIASTREAMER_CFLAGS=-I${linphonePackages.mediastreamer2}/include"
30 ];
31
32 meta = {
33 description = "Mediastreamer plugin for the iLBC audio codec";
34 platforms = lib.platforms.linux;
35 license = lib.licenses.gpl2;
36 };
37}