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 ./disable-debug.patch 53 ]; 54 55 # Dirty approach to add patches after cargoSetupPostUnpackHook 56 # We should eventually use a cargo vendor patch hook instead 57 preConfigure = '' ··· 103 --prefix XDG_DATA_DIRS : "${glycin-loaders}/share" 104 ) 105 ''; 106 107 passthru = { 108 updateScript = nix-update-script { };
··· 52 ./disable-debug.patch 53 ]; 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 + 61 # Dirty approach to add patches after cargoSetupPostUnpackHook 62 # We should eventually use a cargo vendor patch hook instead 63 preConfigure = '' ··· 109 --prefix XDG_DATA_DIRS : "${glycin-loaders}/share" 110 ) 111 ''; 112 + 113 + env.CARGO_BUILD_TARGET = stdenv.hostPlatform.rust.rustcTargetSpec; 114 115 passthru = { 116 updateScript = nix-update-script { };