Commit 6d30a57f authored by Colin's avatar Colin Committed by Emery Hemingway
Browse files

baresip: enable the gtk feature

upstream's CMake feature detection expects the gtk3 package to supply
not only `cflags` but also `cflags_other`. i think the latter was
intended to be optional, so patch it out since our gtk doesn't supply it.
<https://github.com/baresip/baresip/blob/1501ad367dbdd0f91760e0def65e573bce29d0d8/cmake/FindGTK3.cmake#L14-L15>
parent 0db1163a
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -36,7 +36,9 @@ stdenv.mkDerivation rec {
    rev = "v${version}";
    hash = "sha256-0huZP1hopHaN5R1Hki6YutpvoASfIHzHMl/Y4czHHMo=";
  };
  prePatch = lib.optionalString (!dbusSupport) ''
  prePatch = ''
    substituteInPlace cmake/FindGTK3.cmake --replace GTK3_CFLAGS_OTHER ""
  '' + lib.optionalString (!dbusSupport) ''
    substituteInPlace cmake/modules.cmake --replace 'list(APPEND MODULES ctrl_dbus)' ""
  '';
  nativeBuildInputs = [ cmake pkg-config ];
@@ -109,6 +111,7 @@ stdenv.mkDerivation rec {
    "g711"
    "g722"
    "g726"
    "gtk"
    "httpd"
    "httpreq"
    "ice"