Change:
Baresip fails to build after because the baresip no longer finds librem through pkg-config. Building baresip with Cmake resolves this, but then there is a new build failure: Steps to reproduce the behavior: baresip
Sorry! I think fixes this. I developed and tested them together but wanted to take more time to be sure baresip was finding all of its dependencies. I didn't realize that merging one without the other would break things. We can either merge or else revert and
Waiting for is fine by me.

Discussion:
, spandsp3 , libuuid , libvpx <ins> , cmake , dbusSupport ? true </ins> }: stdenv.mkDerivation rec { version = "2.9.0";

rev = "v${version}"; sha256 = "sha256-B4d8D4IfLYAIYVN80Lrh5bywD5iacSnUVwEzbc6Xq7g="; }; <del> nativeBuildInputs = [ pkg-config ]; </del> <ins> prePatch = lib.optionalString (!dbusSupport) '' substituteInPlace cmake/modules.cmake --replace 'list(APPEND MODULES ctrl_dbus)' "" ''; nativeBuildInputs = [ pkg-config cmake ]; </ins> buildInputs = [ zlib openssl

libuuid libvpx ] ++ (with gst_all_1; [ gstreamer gst-libav gst-plugins-base gst-plugins-bad gst-plugins-good ]); <ins> cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=ON" "-Dre_DIR=${libre}/include/re" ]; </ins> makeFlags = [ "LIBRE_MK=${libre}/share/re/re.mk" <del> "LIBRE_INC=${libre}/include/re" </del> "LIBRE_SO=${libre}/lib" "LIBREM_PATH=${librem}" "PREFIX=$(out)"

++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.cc.libc}" ; <ins> enableParallelBuilding = true; </ins> env.NIX_CFLAGS_COMPILE = '' -I${librem}/include/rem -I${gsm}/include/gsm -DHAVE_INTTYPES_H -D__GLIBC__ -D__need_timeval -D__need_timespec -D__need_time_t '';

<del> { lib, stdenv, fetchFromGitHub, zlib, openssl }: </del> <ins> { lib, stdenv, fetchFromGitHub, zlib, openssl , cmake }: </ins> stdenv.mkDerivation rec { version = "2.9.0"; pname = "libre";

sha256 = "sha256-YNAfHmohMqGGF8N/VdndJJ32PF/GMBoNtjo/t2lt6HA="; }; buildInputs = [ zlib openssl ]; <ins> nativeBuildInputs = [ cmake ]; </ins> makeFlags = [ "USE_ZLIB=1" "USE_OPENSSL=1" "PREFIX=$(out)" ] ++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}" ++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${lib.getDev stdenv.cc.libc}" ; <ins> enableParallelBuilding = true; </ins> meta = { description = "A library for real-time communications with async IO support and a complete SIP stack"; homepage = "https://github.com/baresip/re";

<del> { lib, stdenv, fetchFromGitHub, zlib, openssl, libre }: </del> <ins> { lib, stdenv, fetchFromGitHub, zlib, openssl, libre , cmake }: </ins> stdenv.mkDerivation rec { version = "2.10.0"; pname = "librem";

rev = "v${version}"; sha256 = "sha256-wyzpx0WjQLA8UKx4S6QOETMehf51Af5napZsxMXttmM="; }; <ins> nativeBuildInputs = [ cmake ]; </ins> buildInputs = [ zlib openssl libre ]; <ins> cmakeFlags = [ "-DRE_INCLUDE_DIR=${libre}/include/re" ]; </ins> makeFlags = [ "LIBRE_MK=${libre}/share/re/re.mk" <del> "LIBRE_INC=${libre}/include/re" </del> "PREFIX=$(out)" ] ++ 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}" ; <ins> enableParallelBuilding = true; </ins> meta = { description = "A library for real-time audio and video processing"; homepage = "https://github.com/baresip/rem";