21 , gsettings-desktop-schemas
23 , unicode-character-database
27 , gobject-introspection
32 # TODO: make upstream patch allowing to use the uncompressed file,
33 # preferably from XDG_DATA_DIRS.
34 # https://gitlab.gnome.org/GNOME/gucharmap/issues/13
35 unihanZip = runCommand "unihan" {} ''
36 mkdir -p $out/share/unicode
37 ln -s ${unihan-database.src} $out/share/unicode/Unihan.zip
43 unicode-character-database
46 in stdenv.mkDerivation (finalAttrs: {
50 outputs = [ "out" "lib" "dev" "devdoc" ];
52 src = fetchFromGitLab {
53 domain = "gitlab.gnome.org";
56 rev = finalAttrs.version;
57 hash = "sha256-eQ27TIggwQ2RjDQO5ytVrUT7iNtbP5HOwMcpzweMW8A=";
77 ] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
84 gsettings-desktop-schemas
89 "-Ducd_path=${ucd}/share/unicode"
97 data/meson_desktopfile.py \
98 gucharmap/gen-guch-unicode-tables.pl
102 updateScript = gitUpdater {
107 description = "GNOME Character Map, based on the Unicode Character Database";
108 mainProgram = "gucharmap";
109 homepage = "https://gitlab.gnome.org/GNOME/gucharmap";
110 license = licenses.gpl3Plus;
111 maintainers = teams.gnome.members;
112 platforms = platforms.linux;