Unverified Commit 904c5631 authored by Randy Eckenrode's avatar Randy Eckenrode
Browse files

gnome-font-viewer: fix build with clang 16

parent 82cbb284
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, fetchpatch2
, meson
, ninja
, gettext
@@ -25,6 +26,14 @@ stdenv.mkDerivation rec {
    hash = "sha256-WS9AHkhdAswETUh7tcjgTJYdpoViFnaKWfH/mL0tU3w=";
  };

  patches = lib.optionals stdenv.cc.isClang [
    # Fixes an incompatible function pointer error when building with clang 16
    (fetchpatch2 {
      url = "https://gitlab.gnome.org/GNOME/gnome-font-viewer/-/commit/565d795731471c27542bb9ee60820a2d0d15534e.diff";
      hash = "sha256-8dgOVTx6ZbvXROlIWTZU2xNWJ11LlJykRs699cgZqow=";
    })
  ];

  doCheck = true;

  nativeBuildInputs = [