1{ stdenv, fetchurl, cmake, openssl, pkgconfig, ccrtp }:
2
3stdenv.mkDerivation rec {
4 name = "libzrtpcpp-2.3.4";
5
6 src = fetchurl {
7 url = "mirror://gnu/ccrtp/${name}.tar.gz";
8 sha256 = "020hfyrh8qdwkqdg1r1n65wdzj5i01ba9dzjghbm9lbz93gd9r83";
9 };
10
11 # We disallow 'lib64', or pkgconfig will not find it.
12 prePatch = ''
13 sed -i s/lib64/lib/ CMakeLists.txt
14 '';
15
16 nativeBuildInputs = [ cmake pkgconfig ];
17 buildInputs = [ openssl ccrtp ];
18
19 meta = {
20 description = "GNU RTP stack for the zrtp protocol developed by Phil Zimmermann";
21 homepage = "http://www.gnutelephony.org/index.php/GNU_ZRTP";
22 license = stdenv.lib.licenses.gpl2;
23 maintainers = [ stdenv.lib.maintainers.marcweber ];
24 platforms = stdenv.lib.platforms.linux;
25 };
26}