gnome-user-share: Fix cross

7ffb23dd5a/src/meson.build (L47)
This commit is contained in:
Artturin 2025-08-18 01:58:39 +03:00
parent a21deff818
commit 4c65774ecc

View File

@ -78,6 +78,14 @@ stdenv.mkDerivation (finalAttrs: {
glib
];
postPatch = ''
substituteInPlace src/meson.build \
--replace-fail "'cp', 'src' / rust_target / meson.project_name(), '@OUTPUT@'," "'cp', 'src' / '${stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / meson.project_name(), '@OUTPUT@',"
'';
# For https://gitlab.gnome.org/GNOME/gnome-user-share/-/blob/7ffb23dd5af0fda75c66f03756798dc10e253c36/src/meson.build#L47
env.CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.rustcTargetSpec;
doCheck = true;
strictDeps = true;