mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
gnome3.gnome-characters: correct entry point
By wraping the files, the `*-.wrapped` file will be recognized as the entry point, which is used as a base for loading additional files so we need to override the entry point function. We also ensure BackgroundService gets wrapped with wrapGAppsHook. Fixes #31168 Co-authored-by: Jan Tojnar <jtojnar@gmail.com>
This commit is contained in:
parent
fd7fa0aa5d
commit
d21e4a9514
@ -34,6 +34,20 @@ stdenv.mkDerivation rec {
|
||||
"-Ddbus_service_dir=${placeholder "out"}/share/dbus-1/services"
|
||||
];
|
||||
|
||||
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
|
||||
|
||||
wrapProgram $file "''${gappsWrapperArgs[@]}"
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://wiki.gnome.org/Design/Apps/CharacterMap;
|
||||
description = "Simple utility application to find and insert unusual characters";
|
||||
|
Loading…
Reference in New Issue
Block a user