mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
gnome-maps: fix broken .desktop file (#353003)
This commit is contained in:
commit
35d36e9a94
@ -5,7 +5,6 @@
|
||||
meson,
|
||||
ninja,
|
||||
gettext,
|
||||
python3,
|
||||
pkg-config,
|
||||
gnome,
|
||||
glib,
|
||||
@ -75,8 +74,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
# entry point to the wrapped binary we get back to a wrapped
|
||||
# binary.
|
||||
substituteInPlace "data/org.gnome.Maps.service.in" \
|
||||
--replace "Exec=@pkgdatadir@/@app-id@" \
|
||||
"Exec=$out/bin/gnome-maps"
|
||||
--replace-fail "Exec=@pkgdatadir@/@app-id@" \
|
||||
"Exec=$out/bin/gnome-maps"
|
||||
'';
|
||||
|
||||
preCheck = ''
|
||||
@ -97,6 +96,12 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
rm $out/lib/gnome-maps/libgnome-maps.so.0
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
substituteInPlace "$out/share/applications/org.gnome.Maps.desktop" \
|
||||
--replace-fail "Exec=gapplication launch org.gnome.Maps" \
|
||||
"Exec=gnome-maps"
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = gnome.updateScript { packageName = "gnome-maps"; };
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user