diff options
author | worldofpeace <worldofpeace@protonmail.ch> | 2019-08-20 14:17:17 -0400 |
---|---|---|
committer | worldofpeace <worldofpeace@protonmail.ch> | 2019-08-20 14:38:19 -0400 |
commit | d21e4a95144d18faaf047dcccd2c7ad4b962ed88 (patch) | |
tree | dce6a8c44fb6cd236764a4100fd884824c79fe57 /pkgs/desktops | |
parent | fd7fa0aa5dc03958d1d0f4f45fc2e91567e04254 (diff) | |
download | nixpkgs-d21e4a95144d18faaf047dcccd2c7ad4b962ed88.tar nixpkgs-d21e4a95144d18faaf047dcccd2c7ad4b962ed88.tar.gz nixpkgs-d21e4a95144d18faaf047dcccd2c7ad4b962ed88.tar.bz2 nixpkgs-d21e4a95144d18faaf047dcccd2c7ad4b962ed88.tar.lz nixpkgs-d21e4a95144d18faaf047dcccd2c7ad4b962ed88.tar.xz nixpkgs-d21e4a95144d18faaf047dcccd2c7ad4b962ed88.tar.zst nixpkgs-d21e4a95144d18faaf047dcccd2c7ad4b962ed88.zip |
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>
Diffstat (limited to 'pkgs/desktops')
-rw-r--r-- | pkgs/desktops/gnome-3/apps/gnome-characters/default.nix | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/desktops/gnome-3/apps/gnome-characters/default.nix b/pkgs/desktops/gnome-3/apps/gnome-characters/default.nix index c95d135e9e7..a634330d0b7 100644 --- a/pkgs/desktops/gnome-3/apps/gnome-characters/default.nix +++ b/pkgs/desktops/gnome-3/apps/gnome-characters/default.nix @@ -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"; |