2023-03-08 16:32:21 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, zlib, openssl, libre
|
|
|
|
, cmake }:
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "2.10.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "librem";
|
2022-01-07 04:07:37 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "baresip";
|
|
|
|
repo = "rem";
|
|
|
|
rev = "v${version}";
|
2022-12-17 10:02:37 +00:00
|
|
|
sha256 = "sha256-wyzpx0WjQLA8UKx4S6QOETMehf51Af5napZsxMXttmM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-03-08 16:32:21 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2022-01-07 04:07:37 +00:00
|
|
|
buildInputs = [ zlib openssl libre ];
|
2023-03-08 16:32:21 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DRE_INCLUDE_DIR=${libre}/include/re"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
makeFlags = [
|
|
|
|
"LIBRE_MK=${libre}/share/re/re.mk"
|
2021-02-05 17:12:51 +00:00
|
|
|
"PREFIX=$(out)"
|
2020-04-24 23:36:52 +00:00
|
|
|
]
|
2021-02-05 17:12:51 +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}"
|
2020-04-24 23:36:52 +00:00
|
|
|
;
|
2023-03-04 12:14:45 +00:00
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
2022-01-07 04:07:37 +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-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.bsd3;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|