base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / gn / gnome-characters / package.nix
blobf827feae8bd6723166deced7f66b31a8e1f31486
2   lib,
3   stdenv,
4   fetchurl,
5   meson,
6   ninja,
7   pkg-config,
8   gettext,
9   gnome,
10   glib,
11   gtk4,
12   pango,
13   wrapGAppsHook4,
14   desktop-file-utils,
15   gobject-introspection,
16   gjs,
17   libunistring,
18   libadwaita,
19   gsettings-desktop-schemas,
20   gnome-desktop,
23 stdenv.mkDerivation rec {
24   pname = "gnome-characters";
25   version = "47.0";
27   src = fetchurl {
28     url = "mirror://gnome/sources/gnome-characters/${lib.versions.major version}/gnome-characters-${version}.tar.xz";
29     hash = "sha256-a88Foi8w8THYqANbD2PYapVnAHpfbfXOhVa6Bnd7dXQ=";
30   };
32   nativeBuildInputs = [
33     gettext
34     gobject-introspection
35     meson
36     ninja
37     pkg-config
38     desktop-file-utils
39     wrapGAppsHook4
40   ];
42   buildInputs = [
43     gjs
44     glib
45     gnome-desktop # for typelib
46     gsettings-desktop-schemas
47     gtk4
48     libunistring
49     libadwaita
50     pango
51   ];
53   dontWrapGApps = true;
55   postFixup = ''
56     # Fixes https://github.com/NixOS/nixpkgs/issues/31168
57     file="$out/share/org.gnome.Characters/org.gnome.Characters"
58     sed -e $"2iimports.package._findEffectiveEntryPointName = () => \'$(basename $file)\' " \
59       -i $file
60     wrapGApp "$file"
61   '';
63   passthru = {
64     updateScript = gnome.updateScript { packageName = "gnome-characters"; };
65   };
67   meta = with lib; {
68     homepage = "https://apps.gnome.org/Characters/";
69     description = "Simple utility application to find and insert unusual characters";
70     mainProgram = "gnome-characters";
71     maintainers = teams.gnome.members;
72     license = licenses.gpl2Plus;
73     platforms = platforms.linux;
74   };