Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, ilbc, mediastreamer, pkg-config }: 2 3stdenv.mkDerivation rec { 4 pname = "msilbc"; 5 version = "2.1.2"; 6 7 src = fetchurl { 8 url = "mirror://savannah/linphone/plugins/sources/${pname}-${version}.tar.gz"; 9 sha256 = "07j02y994ybh274fp7ydjvi76h34y2c34ndwjpjfcwwr03b48cfp"; 10 }; 11 12 propagatedBuildInputs = [ ilbc mediastreamer ]; 13 nativeBuildInputs = [ pkg-config ]; 14 15 configureFlags = [ 16 "ILBC_LIBS=ilbc" "ILBC_CFLAGS=-I${ilbc}/include" 17 "MEDIASTREAMER_LIBS=mediastreamer" "MEDIASTREAMER_CFLAGS=-I${mediastreamer}/include" 18 ]; 19 20 meta = with lib; { 21 description = "Mediastreamer plugin for the iLBC audio codec"; 22 platforms = platforms.linux; 23 license = licenses.gpl2; 24 }; 25}