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
|
2019-03-09 01:40:30 +00:00
|
|
|
, wrapGAppsHook, gnome3, harfbuzz }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "gnome-font-viewer";
|
2019-09-02 17:44:49 +01:00
|
|
|
version = "3.34.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "mirror://gnome/sources/gnome-font-viewer/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-09-02 17:44:49 +01:00
|
|
|
sha256 = "12xrsqwmvid7hksiw4zhj4jd1qwxn8w0czskbq4yqfprwn1havxa";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext wrapGAppsHook libxml2 ];
|
2019-03-09 01:40:30 +00:00
|
|
|
buildInputs = [ gtk3 glib gnome-desktop adwaita-icon-theme harfbuzz ];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
# Do not run meson-postinstall.sh
|
|
|
|
preConfigure = "sed -i '2,$ d' meson-postinstall.sh";
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-02-13 21:47:50 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-font-viewer";
|
|
|
|
attrPath = "gnome3.gnome-font-viewer";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Program that can preview fonts and create thumbnails for fonts";
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 20:35:23 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|