baresip: assert that all expected modules were compiled

This commit is contained in:
Colin 2024-08-16 08:33:36 +00:00 committed by Emery Hemingway
parent e5e7f76711
commit 7245ee8389

View File

@ -123,6 +123,70 @@ stdenv.mkDerivation rec {
-DHAVE_INTTYPES_H -D__GLIBC__ -DHAVE_INTTYPES_H -D__GLIBC__
-D__need_timeval -D__need_timespec -D__need_time_t ''; -D__need_timeval -D__need_timespec -D__need_time_t '';
doInstallCheck = true;
# CMake feature detection is prone to breakage between upgrades:
# spot-check that the optional modules we care about were compiled
postInstallCheck = lib.concatMapStringsSep "\n" (m: "test -x $out/lib/baresip/modules/${m}.so") [
"account"
"alsa"
"aubridge"
"auconv"
"aufile"
"auresamp"
"ausine"
"avcodec"
"avfilter"
"avformat"
"cons"
"contact"
"ctrl_dbus"
"ctrl_tcp"
"debug_cmd"
"dtls_srtp"
"ebuacip"
"echo"
"evdev"
"fakevideo"
"g711"
"g722"
"g726"
"httpd"
"httpreq"
"ice"
"l16"
"menu"
"mixausrc"
"mixminus"
"multicast"
"mwi"
"natpmp"
"netroam"
"pcp"
"plc"
"portaudio"
"presence"
"rtcpsummary"
"sdl"
"selfview"
"serreg"
"snapshot"
"sndfile"
"srtp"
"stdio"
"stun"
"swscale"
"syslog"
"turn"
"uuid"
"v4l2"
"vidbridge"
"vidinfo"
"vp8"
"vp9"
"vumeter"
"x11"
];
meta = { meta = {
description = "Modular SIP User-Agent with audio and video support"; description = "Modular SIP User-Agent with audio and video support";
homepage = "https://github.com/baresip/baresip"; homepage = "https://github.com/baresip/baresip";