Skip to content

Commit 4c65774

Browse files

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkgs/by-name/gn/gnome-user-share/package.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ stdenv.mkDerivation (finalAttrs: {
7878
glib
7979
];
8080

81+
postPatch = ''
82+
substituteInPlace src/meson.build \
83+
--replace-fail "'cp', 'src' / rust_target / meson.project_name(), '@OUTPUT@'," "'cp', 'src' / '${stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / meson.project_name(), '@OUTPUT@',"
84+
'';
85+
86+
# For https://gitlab.gnome.org/GNOME/gnome-user-share/-/blob/7ffb23dd5af0fda75c66f03756798dc10e253c36/src/meson.build#L47
87+
env.CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.rustcTargetSpec;
88+
8189
doCheck = true;
8290
strictDeps = true;
8391

0 commit comments

Comments
 (0)