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}";
|
|
|
|
version = "3.26.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gnome-font-viewer/${gnome3.versionBranch version}/${name}.tar.xz";
|
|
|
|
sha256 = "02768a62b4033de5ef9d00602e8c29e5de05255f879b0d9b4d731be9648fe9a0";
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|