1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00

Merge pull request #328592 from reckenrode/gnome-font-viewer-fixes

gnome-font-viewer: fix build with clang 16
This commit is contained in:
Randy Eckenrode 2024-07-20 09:29:37 -04:00 committed by GitHub
commit ce5160509e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,6 @@
{ 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 = [