gnome-maps: fix cross compilation (#357238)
This commit is contained in:
commit
722661d33b
@ -147,6 +147,7 @@ in stdenv.mkDerivation (finalAttrs: {
|
||||
description = "JavaScript bindings for GNOME";
|
||||
homepage = "https://gitlab.gnome.org/GNOME/gjs/blob/master/doc/Home.md";
|
||||
license = licenses.lgpl2Plus;
|
||||
mainProgram = "gjs";
|
||||
maintainers = teams.gnome.members;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
|
@ -25,6 +25,7 @@
|
||||
libadwaita,
|
||||
geocode-glib_2,
|
||||
tzdata,
|
||||
writeText,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@ -68,6 +69,13 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
libsoup_3
|
||||
];
|
||||
|
||||
mesonFlags = [
|
||||
"--cross-file=${writeText "crossfile.ini" ''
|
||||
[binaries]
|
||||
gjs = '${lib.getExe gjs}'
|
||||
''}"
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
# “time.js” included by “timeTest” and “translationsTest” depends on “org.gnome.desktop.interface” schema.
|
||||
export XDG_DATA_DIRS="${gsettings-desktop-schemas}/share/gsettings-schemas/${gsettings-desktop-schemas.name}:$XDG_DATA_DIRS"
|
||||
|
Loading…
Reference in New Issue
Block a user