Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, zlib, openssl, libre 2, cmake }: 3 4stdenv.mkDerivation rec { 5 version = "2.10.0"; 6 pname = "librem"; 7 src = fetchFromGitHub { 8 owner = "baresip"; 9 repo = "rem"; 10 rev = "v${version}"; 11 sha256 = "sha256-wyzpx0WjQLA8UKx4S6QOETMehf51Af5napZsxMXttmM="; 12 }; 13 nativeBuildInputs = [ cmake ]; 14 buildInputs = [ zlib openssl libre ]; 15 cmakeFlags = [ 16 "-DRE_INCLUDE_DIR=${libre}/include/re" 17 ]; 18 makeFlags = [ 19 "LIBRE_MK=${libre}/share/re/re.mk" 20 "PREFIX=$(out)" 21 "AR=${stdenv.cc.targetPrefix}ar" 22 ] 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}" 25 ; 26 enableParallelBuilding = true; 27 meta = { 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; 32 }; 33}