build-support/rust: allow cross-compiling the sysroot

This commit is contained in:
Astro
2023-03-12 12:24:23 +01:00
parent 63c8961f8b
commit 9d1aafcdeb
@@ -29,4 +29,7 @@ in rustPlatform.buildRustPackage {
host=${rust.toRustTarget stdenv.buildPlatform}
cp -r $RUST_SYSROOT/lib/rustlib/$host $out
'';
# allows support for cross-compilation
meta.platforms = lib.platforms.all;
}