fractal: fix cross compilation (#437038)

Changed files
+8
pkgs
by-name
fr
fractal
+8
pkgs/by-name/fr/fractal/package.nix
···
./disable-debug.patch
];
+
postPatch = ''
+
substituteInPlace src/meson.build --replace-fail \
+
"'src' / rust_target / meson.project_name()" \
+
"'src' / '${stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / meson.project_name()"
+
'';
+
# Dirty approach to add patches after cargoSetupPostUnpackHook
# We should eventually use a cargo vendor patch hook instead
preConfigure = ''
···
--prefix XDG_DATA_DIRS : "${glycin-loaders}/share"
)
'';
+
+
env.CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.rustcTargetSpec;
passthru = {
updateScript = nix-update-script { };