2017-10-04 22:50:14 +01:00
|
|
|
{ stdenv, meson, ninja, gettext, fetchurl
|
|
|
|
, pkgconfig, gtk3, glib, libxml2
|
|
|
|
, wrapGAppsHook, gnome3 }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 20:07:20 +00:00
|
|
|
name = "gnome-font-viewer-${version}";
|
2018-09-01 21:41:50 +01:00
|
|
|
version = "3.30.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 01:12:11 +01:00
|
|
|
url = "mirror://gnome/sources/gnome-font-viewer/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-09-01 21:41:50 +01:00
|
|
|
sha256 = "1wwnx2zrlbd2d6np7m9s78alx6j6ranrnh1g2z6zrv9qcj8rpzz5";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript { packageName = "gnome-font-viewer"; attrPath = "gnome3.gnome-font-viewer"; };
|
|
|
|
};
|
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 ];
|
2018-02-25 02:23:58 +00:00
|
|
|
buildInputs = [ gtk3 glib gnome3.gnome-desktop gnome3.defaultIconTheme ];
|
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
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Program that can preview fonts and create thumbnails for fonts";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|