1 {lib, stdenv, fetchurl, zlib, openssl}:
2 stdenv.mkDerivation rec {
6 url = "http://www.creytiv.com/pub/re-${version}.tar.gz";
7 sha256 = "0hzyc0hdlw795nyx6ik7h2ihs8wapbj32x8c40xq0484ciwzqnyd";
9 buildInputs = [ zlib openssl ];
10 makeFlags = [ "USE_ZLIB=1" "USE_OPENSSL=1" "PREFIX=$(out)" ]
11 ++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}"
12 ++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${lib.getDev stdenv.cc.libc}"
15 description = "A library for real-time communications with async IO support and a complete SIP stack";
16 homepage = "http://www.creytiv.com/re.html";
17 platforms = with lib.platforms; linux;
18 maintainers = with lib.maintainers; [raskin];
19 license = lib.licenses.bsd3;
21 downloadPage = "http://www.creytiv.com/pub/";
23 downloadURLRegexp = "/re-.*[.]tar[.].*";