10 stdenv.mkDerivation rec {
13 src = fetchFromGitHub {
17 sha256 = "sha256-pFtrmrNRSL1lw10LjayOoNFrW/tTPXwmUipwC5v1MZs=";
23 ] ++ lib.optionals stdenv.isDarwin [
27 nativeBuildInputs = [ cmake ];
28 makeFlags = [ "USE_ZLIB=1" "USE_OPENSSL=1" "PREFIX=$(out)" ]
29 ++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}"
30 ++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${lib.getDev stdenv.cc.libc}"
32 enableParallelBuilding = true;
34 description = "A library for real-time communications with async IO support and a complete SIP stack";
35 homepage = "https://github.com/baresip/re";
36 maintainers = with lib.maintainers; [ elohmeier raskin ];
37 license = lib.licenses.bsd3;