1 { lib, stdenv, fetchFromGitHub, zlib, openssl, libre
4 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-wyzpx0WjQLA8UKx4S6QOETMehf51Af5napZsxMXttmM=";
13 nativeBuildInputs = [ cmake ];
14 buildInputs = [ zlib openssl libre ];
16 "-DRE_INCLUDE_DIR=${libre}/include/re"
19 "LIBRE_MK=${libre}/share/re/re.mk"
21 "AR=${stdenv.cc.targetPrefix}ar"
23 ++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${lib.getDev stdenv.cc.cc}"
24 ++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${lib.getDev stdenv.cc.libc}"
26 enableParallelBuilding = true;
28 description = "A library for real-time audio and video processing";
29 homepage = "https://github.com/baresip/rem";
30 maintainers = with lib.maintainers; [ elohmeier raskin ];
31 license = lib.licenses.bsd3;