29 stdenv.mkDerivation rec {
32 src = fetchFromGitHub {
36 hash = "sha256-0huZP1hopHaN5R1Hki6YutpvoASfIHzHMl/Y4czHHMo=";
38 prePatch = lib.optionalString (!dbusSupport) ''
39 substituteInPlace cmake/modules.cmake --replace 'list(APPEND MODULES ctrl_dbus)' ""
41 nativeBuildInputs = [ pkg-config cmake ];
63 ] ++ (with gst_all_1; [ gstreamer gst-libav gst-plugins-base gst-plugins-bad gst-plugins-good ]);
66 "-DCMAKE_SKIP_BUILD_RPATH=ON"
67 "-Dre_DIR=${libre}/include/re"
71 "LIBRE_MK=${libre}/share/re/re.mk"
72 "LIBRE_SO=${libre}/lib"
73 "LIBREM_PATH=${librem}"
116 ++ lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}"
117 ++ lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.cc.libc}"
120 enableParallelBuilding = true;
122 env.NIX_CFLAGS_COMPILE = '' -I${librem}/include/rem -I${gsm}/include/gsm
123 -DHAVE_INTTYPES_H -D__GLIBC__
124 -D__need_timeval -D__need_timespec -D__need_time_t '';
127 description = "Modular SIP User-Agent with audio and video support";
128 homepage = "https://github.com/baresip/baresip";
129 maintainers = with lib.maintainers; [ raskin ehmry ];
130 mainProgram = "baresip";
131 license = lib.licenses.bsd3;
132 platforms = lib.platforms.unix;