nixpkgs/pkgs/development/libraries/librem/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
987 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, zlib, openssl, libre
, cmake }:
2012-09-24 17:02:19 +00:00
stdenv.mkDerivation rec {
2022-12-10 13:43:53 +00:00
version = "2.10.0";
pname = "librem";
2022-01-06 17:14:10 +00:00
src = fetchFromGitHub {
owner = "baresip";
repo = "rem";
rev = "v${version}";
2022-12-10 13:43:53 +00:00
sha256 = "sha256-wyzpx0WjQLA8UKx4S6QOETMehf51Af5napZsxMXttmM=";
2012-09-24 17:02:19 +00:00
};
nativeBuildInputs = [ cmake ];
2022-01-06 17:14:10 +00:00
buildInputs = [ zlib openssl libre ];
cmakeFlags = [
"-DRE_INCLUDE_DIR=${libre}/include/re"
];
2012-09-24 17:02:19 +00:00
makeFlags = [
"LIBRE_MK=${libre}/share/re/re.mk"
"PREFIX=$(out)"
2023-04-06 02:50:49 +00:00
"AR=${stdenv.cc.targetPrefix}ar"
]
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}"
;
2023-02-26 23:03:02 +00:00
enableParallelBuilding = true;
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 ];
license = lib.licenses.bsd3;
2012-09-24 17:02:19 +00:00
};
}