1 { lib, stdenv, fetchFromGitHub, zlib, openssl, libre }:
2 stdenv.mkDerivation rec {
5 src = fetchFromGitHub {
9 sha256 = "sha256-HiVM/opZuR7Gkt421ps+nKiiKERG8sUD8qBLIMGNCJI=";
11 buildInputs = [ zlib openssl libre ];
13 "LIBRE_MK=${libre}/share/re/re.mk"
14 "LIBRE_INC=${libre}/include/re"
17 ++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${lib.getDev stdenv.cc.cc}"
18 ++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${lib.getDev stdenv.cc.libc}"
21 description = "A library for real-time audio and video processing";
22 homepage = "https://github.com/baresip/rem";
23 maintainers = with lib.maintainers; [ elohmeier raskin ];
24 license = lib.licenses.bsd3;