forked from mirrors/nixpkgs
buildRustPackage: by default use Rust's platforms
This commit is contained in:
parent
a835adc10c
commit
da492d230b
|
@ -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;
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue