3
0
Fork 0
forked from mirrors/nixpkgs

buildRustPackage: by default use Rust's platforms

This commit is contained in:
Mario Rodas 2019-07-21 00:00:00 -05:00
parent a835adc10c
commit da492d230b
No known key found for this signature in database
GPG key ID: 4C4BEFD7B18DC5E8

View file

@ -14,6 +14,7 @@
, cargoDepsHook ? "" , cargoDepsHook ? ""
, cargoBuildFlags ? [] , cargoBuildFlags ? []
, buildType ? "release" , buildType ? "release"
, meta ? {}
, cargoVendorDir ? null , cargoVendorDir ? null
, ... } @ args: , ... } @ args:
@ -147,4 +148,9 @@ in stdenv.mkDerivation (args // {
''; '';
passthru = { inherit cargoDeps; } // (args.passthru or {}); passthru = { inherit cargoDeps; } // (args.passthru or {});
meta = {
# default to Rust's platforms
platforms = rustc.meta.platforms;
} // meta;
}) })