2022-01-06 17:14:10 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, zlib, openssl, libre }:
|
2012-09-24 17:02:19 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-01-06 17:14:10 +00:00
|
|
|
version = "1.0.0";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "librem";
|
2022-01-06 17:14:10 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "baresip";
|
|
|
|
repo = "rem";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-6Xe9zT0qLLGe1+QCQ9NALoDTaRhHpaTLbCbA+kV7hOA=";
|
2012-09-24 17:02:19 +00:00
|
|
|
};
|
2022-01-06 17:14:10 +00:00
|
|
|
buildInputs = [ zlib openssl libre ];
|
2012-09-24 17:02:19 +00:00
|
|
|
makeFlags = [
|
|
|
|
"LIBRE_MK=${libre}/share/re/re.mk"
|
|
|
|
"LIBRE_INC=${libre}/include/re"
|
2021-01-24 09:19:10 +00:00
|
|
|
"PREFIX=$(out)"
|
2012-09-24 19:49:11 +00:00
|
|
|
]
|
2021-01-23 17:15:07 +00:00
|
|
|
++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${lib.getDev stdenv.cc.cc}"
|
|
|
|
++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${lib.getDev stdenv.cc.libc}"
|
2012-09-24 19:49:11 +00:00
|
|
|
;
|
2012-09-24 17:02:19 +00:00
|
|
|
meta = {
|
2022-01-06 17:14:10 +00:00
|
|
|
description = "A library for real-time audio and video processing";
|
|
|
|
homepage = "https://github.com/baresip/rem";
|
|
|
|
maintainers = with lib.maintainers; [ elohmeier raskin ];
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2012-09-24 17:02:19 +00:00
|
|
|
};
|
|
|
|
}
|