12 , gobject-introspection
23 , gsettings-desktop-schemas
30 stdenv.mkDerivation (finalAttrs: {
35 url = "mirror://gnome/sources/gnome-maps/${lib.versions.major finalAttrs.version}/gnome-maps-${finalAttrs.version}.tar.xz";
36 hash = "sha256-lAtBuXQLCBMyXjkWdYcWz4+g7k4MkZHyYM7AbZITWDU=";
39 doCheck = !stdenv.isDarwin;
48 # For post install script
60 gsettings-desktop-schemas
72 # The .service file isn't wrapped with the correct environment
73 # so misses GIR files when started. By re-pointing from the gjs
74 # entry point to the wrapped binary we get back to a wrapped
76 substituteInPlace "data/org.gnome.Maps.service.in" \
77 --replace "Exec=@pkgdatadir@/@app-id@" \
78 "Exec=$out/bin/gnome-maps"
82 # “time.js” included by “timeTest” and “translationsTest” depends on “org.gnome.desktop.interface” schema.
83 export XDG_DATA_DIRS="${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:$XDG_DATA_DIRS"
84 export HOME=$(mktemp -d)
85 export TZDIR=${tzdata}/share/zoneinfo
87 # Our gobject-introspection patches make the shared library paths absolute
88 # in the GIR files. When running tests, the library is not yet installed,
89 # though, so we need to replace the absolute path with a local one during build.
90 # We are using a symlink that we will delete before installation.
91 mkdir -p $out/lib/gnome-maps
92 ln -s $PWD/lib/libgnome-maps.so.0 $out/lib/gnome-maps/libgnome-maps.so.0
96 rm $out/lib/gnome-maps/libgnome-maps.so.0
100 updateScript = gnome.updateScript {
101 packageName = "gnome-maps";
102 attrPath = "gnome.gnome-maps";
107 homepage = "https://apps.gnome.org/Maps/";
108 description = "Map application for GNOME 3";
109 mainProgram = "gnome-maps";
110 maintainers = teams.gnome.members;
111 license = licenses.gpl2Plus;
112 platforms = platforms.unix;