2022-01-07 04:07:37 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, zlib, openssl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "2.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "libre";
|
2022-01-07 04:07:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "baresip";
|
|
|
|
repo = "re";
|
|
|
|
rev = "v${version}";
|
2022-10-06 18:32:54 +00:00
|
|
|
sha256 = "sha256-mbPFaq49EI2BdhdQJwFaBxjAh2aKlcuFwoCTwhXRbUg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
buildInputs = [ zlib openssl ];
|
|
|
|
makeFlags = [ "USE_ZLIB=1" "USE_OPENSSL=1" "PREFIX=$(out)" ]
|
2022-01-07 04:07:37 +00:00
|
|
|
++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}"
|
|
|
|
++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${lib.getDev stdenv.cc.libc}"
|
2020-04-24 23:36:52 +00:00
|
|
|
;
|
|
|
|
meta = {
|
|
|
|
description = "A library for real-time communications with async IO support and a complete SIP stack";
|
2022-01-07 04:07:37 +00:00
|
|
|
homepage = "https://github.com/baresip/re";
|
|
|
|
maintainers = with lib.maintainers; [ elohmeier raskin ];
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|