buildRustPackage: by default use Rust's platforms

wip/yesman
Mario Rodas 5 years ago
parent a835adc10c
commit da492d230b
No known key found for this signature in database
GPG Key ID: 4C4BEFD7B18DC5E8
  1. 6
      pkgs/build-support/rust/default.nix

@ -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…
Cancel
Save