2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, gettext
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, pango
|
|
|
|
, wrapGAppsHook
|
|
|
|
, python3
|
|
|
|
, gobject-introspection
|
|
|
|
, gjs
|
|
|
|
, libunistring
|
2021-05-20 23:08:51 +00:00
|
|
|
, libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, adwaita-icon-theme
|
|
|
|
, gnome-desktop
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gnome-characters";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "40.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-05-20 23:08:51 +00:00
|
|
|
url = "mirror://gnome/sources/gnome-characters/${lib.versions.major version}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "0z2xa4w921bzpzj6gv88pvbrijcnnwni6jxynwz0ybaravyzaqha";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
gobject-introspection
|
|
|
|
meson
|
|
|
|
ninja
|
2021-02-05 17:12:51 +00:00
|
|
|
pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
python3
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
adwaita-icon-theme
|
|
|
|
gjs
|
|
|
|
glib
|
|
|
|
gnome-desktop # for typelib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gtk3
|
|
|
|
libunistring
|
2021-05-20 23:08:51 +00:00
|
|
|
libhandy
|
2020-04-24 23:36:52 +00:00
|
|
|
pango
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py # patchShebangs requires executable file
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
# Fixes https://github.com/NixOS/nixpkgs/issues/31168
|
|
|
|
postFixup = ''
|
|
|
|
for file in $out/share/org.gnome.Characters/org.gnome.Characters \
|
|
|
|
$out/share/org.gnome.Characters/org.gnome.Characters.BackgroundService
|
|
|
|
do
|
|
|
|
sed -e $"2iimports.package._findEffectiveEntryPointName = () => \'$(basename $file)\' " \
|
|
|
|
-i $file
|
|
|
|
|
|
|
|
wrapGApp "$file"
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
attrPath = "gnome.${pname}";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-05-20 23:08:51 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Characters";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Simple utility application to find and insert unusual characters";
|
|
|
|
maintainers = teams.gnome.members;
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|