nixpkgs/pkgs/desktops/gnome-3/core/gnome-font-viewer/default.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

2017-10-04 22:50:14 +01:00
{ stdenv, meson, ninja, gettext, fetchurl
2019-02-13 21:47:50 +00:00
, pkgconfig, gtk3, glib, libxml2, gnome-desktop, adwaita-icon-theme
, wrapGAppsHook, gnome3, harfbuzz }:
stdenv.mkDerivation rec {
pname = "gnome-font-viewer";
version = "3.34.0";
src = fetchurl {
url = "mirror://gnome/sources/gnome-font-viewer/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "12xrsqwmvid7hksiw4zhj4jd1qwxn8w0czskbq4yqfprwn1havxa";
};
doCheck = true;
2017-10-04 22:50:14 +01:00
nativeBuildInputs = [ meson ninja pkgconfig gettext wrapGAppsHook libxml2 ];
buildInputs = [ gtk3 glib gnome-desktop adwaita-icon-theme harfbuzz ];
2017-10-04 22:50:14 +01:00
# Do not run meson-postinstall.sh
preConfigure = "sed -i '2,$ d' meson-postinstall.sh";
2019-02-13 21:47:50 +00:00
passthru = {
updateScript = gnome3.updateScript {
packageName = "gnome-font-viewer";
attrPath = "gnome3.gnome-font-viewer";
};
};
meta = with stdenv.lib; {
description = "Program that can preview fonts and create thumbnails for fonts";
maintainers = teams.gnome.members;
license = licenses.gpl2;
platforms = platforms.linux;
};
}