2019-11-07 18:07:58 +00:00
|
|
|
{ stdenv
|
|
|
|
, intltool
|
|
|
|
, fetchFromGitLab
|
2020-03-19 18:46:09 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2019-11-07 18:07:58 +00:00
|
|
|
, pkgconfig
|
2020-03-19 18:46:09 +00:00
|
|
|
, python3
|
2019-11-07 18:07:58 +00:00
|
|
|
, gtk3
|
|
|
|
, adwaita-icon-theme
|
|
|
|
, glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, gtk-doc
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gnome3
|
|
|
|
, itstool
|
|
|
|
, libxml2
|
|
|
|
, yelp-tools
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_412
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, callPackage
|
|
|
|
, unzip
|
2019-11-07 22:12:52 +00:00
|
|
|
, unicode-character-database
|
|
|
|
, unihan-database
|
|
|
|
, runCommand
|
|
|
|
, symlinkJoin
|
2019-11-07 18:07:58 +00:00
|
|
|
, gobject-introspection
|
|
|
|
}:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-07-14 14:51:42 +01:00
|
|
|
let
|
2019-11-07 22:12:52 +00:00
|
|
|
# TODO: make upstream patch allowing to use the uncompressed file,
|
|
|
|
# preferably from XDG_DATA_DIRS.
|
|
|
|
# https://gitlab.gnome.org/GNOME/gucharmap/issues/13
|
|
|
|
unihanZip = runCommand "unihan" {} ''
|
|
|
|
mkdir -p $out/share/unicode
|
|
|
|
ln -s ${unihan-database.src} $out/share/unicode/Unihan.zip
|
|
|
|
'';
|
|
|
|
ucd = symlinkJoin {
|
|
|
|
name = "ucd+unihan";
|
|
|
|
paths = [
|
|
|
|
unihanZip
|
|
|
|
unicode-character-database
|
|
|
|
];
|
|
|
|
};
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-03-08 00:07:36 +00:00
|
|
|
pname = "gucharmap";
|
2020-03-19 18:46:09 +00:00
|
|
|
version = "13.0.0";
|
2018-07-14 14:51:42 +01:00
|
|
|
|
2018-08-08 16:08:58 +01:00
|
|
|
outputs = [ "out" "lib" "dev" "devdoc" ];
|
|
|
|
|
2018-07-14 14:51:42 +01:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "GNOME";
|
2019-03-08 00:07:36 +00:00
|
|
|
repo = pname;
|
2018-07-14 14:51:42 +01:00
|
|
|
rev = version;
|
2020-03-19 18:46:09 +00:00
|
|
|
sha256 = "17arjigs1lw1h428s9g171n0idrpf9ks23sndldsik1zvvwzlldh";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-12-13 08:54:08 +00:00
|
|
|
nativeBuildInputs = [
|
2020-03-19 18:46:09 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2019-11-07 18:07:58 +00:00
|
|
|
pkgconfig
|
2020-03-19 18:46:09 +00:00
|
|
|
python3
|
2019-11-07 18:07:58 +00:00
|
|
|
wrapGAppsHook
|
|
|
|
unzip
|
|
|
|
intltool
|
|
|
|
itstool
|
|
|
|
gtk-doc
|
|
|
|
docbook_xsl
|
|
|
|
docbook_xml_dtd_412
|
|
|
|
yelp-tools
|
|
|
|
libxml2
|
|
|
|
desktop-file-utils
|
|
|
|
gobject-introspection
|
2017-12-13 08:54:08 +00:00
|
|
|
];
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2019-11-07 18:07:58 +00:00
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
adwaita-icon-theme
|
|
|
|
];
|
2017-09-28 01:27:11 +01:00
|
|
|
|
2020-03-19 18:46:09 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Ducd_path=${ucd}/share/unicode"
|
|
|
|
"-Dvapi=false"
|
2018-07-14 14:51:42 +01:00
|
|
|
];
|
2017-09-28 01:27:11 +01:00
|
|
|
|
2018-07-14 14:51:42 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
2020-03-19 18:46:09 +00:00
|
|
|
patchShebangs data/meson_desktopfile.py gucharmap/gen-guch-unicode-tables.pl gucharmap/meson_compileschemas.py
|
2018-07-14 14:51:42 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
2019-03-08 00:07:36 +00:00
|
|
|
packageName = pname;
|
2018-07-14 14:51:42 +01:00
|
|
|
};
|
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "GNOME Character Map, based on the Unicode Character Database";
|
2019-11-07 18:07:58 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Gucharmap";
|
2016-09-18 20:35:23 +01:00
|
|
|
license = licenses.gpl3;
|
2018-07-14 14:51:42 +01:00
|
|
|
maintainers = gnome3.maintainers;
|
2016-09-18 20:35:23 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|