Merge pull request #65215 from marsam/default-platforms-buildRustPackage

buildRustPackage: by default use Rust's platforms
This commit is contained in:
Jörg Thalheim 2019-07-29 07:15:31 +01:00 committed by GitHub
commit 9aa00bf759
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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