2018-09-03 13:07:30 -07:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, gettext, gnome3, glib, gtk3, pango, wrapGAppsHook, python3
|
2019-02-13 13:47:50 -08:00
|
|
|
, gobject-introspection, gjs, libunistring, gsettings-desktop-schemas, adwaita-icon-theme, gnome-desktop }:
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 12:07:20 -08:00
|
|
|
name = "gnome-characters-${version}";
|
2019-03-15 10:35:06 -07:00
|
|
|
version = "3.32.0";
|
2018-02-25 12:07:20 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-04 17:12:11 -07:00
|
|
|
url = "mirror://gnome/sources/gnome-characters/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2019-03-15 10:35:06 -07:00
|
|
|
sha256 = "1cwazk9x9fs4lf89jqxdian15dk8zfsnpypgl1kknnw8r9mv0bzd";
|
2018-02-25 12:07:20 -08:00
|
|
|
};
|
|
|
|
|
2018-03-14 11:37:33 -07:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
2018-02-25 12:07:20 -08:00
|
|
|
passthru = {
|
2018-03-13 17:47:20 -07:00
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-characters";
|
|
|
|
attrPath = "gnome3.gnome-characters";
|
|
|
|
};
|
2018-02-25 12:07:20 -08:00
|
|
|
};
|
2016-09-18 12:35:23 -07:00
|
|
|
|
2018-12-02 03:41:15 -08:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext wrapGAppsHook python3 gobject-introspection ];
|
2018-11-14 14:13:38 -08:00
|
|
|
buildInputs = [
|
2019-02-13 13:47:50 -08:00
|
|
|
glib gtk3 gjs pango gsettings-desktop-schemas
|
|
|
|
adwaita-icon-theme libunistring
|
2018-11-14 14:13:38 -08:00
|
|
|
# typelib
|
2019-02-13 13:47:50 -08:00
|
|
|
gnome-desktop
|
2018-11-14 14:13:38 -08:00
|
|
|
];
|
2018-03-14 06:14:11 -07:00
|
|
|
|
|
|
|
mesonFlags = [
|
2018-04-26 13:59:34 -07:00
|
|
|
"-Ddbus_service_dir=${placeholder "out"}/share/dbus-1/services"
|
2016-09-18 12:35:23 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Design/Apps/CharacterMap;
|
|
|
|
description = "Simple utility application to find and insert unusual characters";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|