Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

69 lines
1.2 KiB
Nix

{
lib,
stdenv,
meson,
ninja,
gettext,
fetchurl,
pkg-config,
gtk4,
glib,
libxml2,
libadwaita,
fribidi,
wrapGAppsHook4,
gnome,
harfbuzz,
}:
stdenv.mkDerivation rec {
pname = "gnome-font-viewer";
version = "48.0";
src = fetchurl {
url = "mirror://gnome/sources/gnome-font-viewer/${lib.versions.major version}/gnome-font-viewer-${version}.tar.xz";
hash = "sha256-cyYkIxtiT/XHrAOoznG+Ejk9qlNVHRFVCyDXsKOocqc=";
};
doCheck = true;
nativeBuildInputs = [
meson
ninja
pkg-config
gettext
wrapGAppsHook4
libxml2
glib
];
buildInputs = [
gtk4
glib
harfbuzz
libadwaita
fribidi
];
# Do not run meson-postinstall.sh
preConfigure = "sed -i '2,$ d' meson-postinstall.sh";
env = lib.optionalAttrs stdenv.cc.isGNU {
NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
};
passthru = {
updateScript = gnome.updateScript {
packageName = "gnome-font-viewer";
};
};
meta = with lib; {
description = "Program that can preview fonts and create thumbnails for fonts";
homepage = "https://gitlab.gnome.org/GNOME/gnome-font-viewer";
teams = [ teams.gnome ];
license = licenses.gpl2Plus;
platforms = platforms.unix;
};
}