2018-03-15 00:42:01 +01:00
|
|
|
{ stdenv, intltool, fetchurl, pkgconfig, gtk3, defaultIconTheme
|
2018-02-25 03:23:58 +01:00
|
|
|
, glib, desktop-file-utils, bash, appdata-tools
|
2017-09-28 02:27:11 +02:00
|
|
|
, wrapGAppsHook, gnome3, itstool, libxml2
|
2017-12-13 09:54:08 +01:00
|
|
|
, callPackage, unzip, gobjectIntrospection }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 21:07:20 +01:00
|
|
|
name = "gucharmap-${version}";
|
2018-03-13 02:03:18 +01:00
|
|
|
version = "10.0.4";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/gucharmap/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-03-13 02:03:18 +01:00
|
|
|
sha256 = "00gh3lll6wykd2qg1lrj05a4wvscsypmrx7rpb6jsbvb4scnh9mv";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript { packageName = "gucharmap"; };
|
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2017-09-28 02:27:11 +02:00
|
|
|
preConfigure = "patchShebangs gucharmap/gen-guch-unicode-tables.pl";
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2017-12-13 09:54:08 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig wrapGAppsHook unzip intltool itstool appdata-tools
|
2018-02-25 03:23:58 +01:00
|
|
|
gnome3.yelp-tools libxml2 desktop-file-utils gobjectIntrospection
|
2017-12-13 09:54:08 +01:00
|
|
|
];
|
2016-09-18 21:35:23 +02:00
|
|
|
|
2018-03-15 00:42:01 +01:00
|
|
|
buildInputs = [ gtk3 glib gnome3.gsettings-desktop-schemas defaultIconTheme ];
|
2017-09-28 02:27:11 +02:00
|
|
|
|
|
|
|
unicode-data = callPackage ./unicode-data.nix {};
|
|
|
|
|
|
|
|
configureFlags = "--with-unicode-data=${unicode-data}";
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Gucharmap;
|
|
|
|
description = "GNOME Character Map, based on the Unicode Character Database";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|