gnome-maps: fix cross compilation (#357238)

This commit is contained in:
Aleksana 2024-11-27 19:43:24 +08:00 committed by GitHub
commit 722661d33b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -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;
};

View File

@ -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"