Merge pull request #65215 from marsam/default-platforms-buildRustPackage
buildRustPackage: by default use Rust's platforms
This commit is contained in:
commit
9aa00bf759
@ -14,6 +14,7 @@
|
||||
, cargoDepsHook ? ""
|
||||
, cargoBuildFlags ? []
|
||||
, buildType ? "release"
|
||||
, meta ? {}
|
||||
|
||||
, cargoVendorDir ? null
|
||||
, ... } @ args:
|
||||
@ -147,4 +148,9 @@ in stdenv.mkDerivation (args // {
|
||||
'';
|
||||
|
||||
passthru = { inherit cargoDeps; } // (args.passthru or {});
|
||||
|
||||
meta = {
|
||||
# default to Rust's platforms
|
||||
platforms = rustc.meta.platforms;
|
||||
} // meta;
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user