Merge pull request #324861 from Kranzes/crate2nix

lib.systems: Fix setting rust.platform.os for wasm32-unknown-unknown
This commit is contained in:
Florian Klink 2024-07-08 15:27:29 +03:00 committed by GitHub
commit 5d7f58fdd6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -323,6 +323,7 @@ let
os =
/**/ if rust ? platform then rust.platform.os or "none"
else if final.isDarwin then "macos"
else if final.isWasm && !final.isWasi then "unknown" # Needed for {wasm32,wasm64}-unknown-unknown.
else final.parsed.kernel.name;
# https://doc.rust-lang.org/reference/conditional-compilation.html#target_family