fractal: fix cross compilation (#437038)

authored by Ben Siraphob and committed by GitHub 78b310bf b0fadff8

+8
+8
pkgs/by-name/fr/fractal/package.nix
··· 52 52 ./disable-debug.patch 53 53 ]; 54 54 55 + postPatch = '' 56 + substituteInPlace src/meson.build --replace-fail \ 57 + "'src' / rust_target / meson.project_name()" \ 58 + "'src' / '${stdenv.hostPlatform.rust.cargoShortTarget}' / rust_target / meson.project_name()" 59 + ''; 60 + 55 61 # Dirty approach to add patches after cargoSetupPostUnpackHook 56 62 # We should eventually use a cargo vendor patch hook instead 57 63 preConfigure = '' ··· 103 109 --prefix XDG_DATA_DIRS : "${glycin-loaders}/share" 104 110 ) 105 111 ''; 112 + 113 + env.CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.rustcTargetSpec; 106 114 107 115 passthru = { 108 116 updateScript = nix-update-script { };