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

This commit is contained in:
Astro 2023-02-24 21:53:45 +01:00
parent 63c8961f8b
commit 9d1aafcdeb

View file

@ -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;
}