rustPlatform.fetchcargo: expose
This commit is contained in:
parent
fdfbb4671e
commit
b9d274b89d
2 changed files with 9 additions and 9 deletions
|
@ -18,9 +18,9 @@ let cargo-vendor-normalise = stdenv.mkDerivation {
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
{ name ? "cargo-deps"
|
{ name ? "cargo-deps"
|
||||||
, src
|
, src ? null
|
||||||
, srcs
|
, srcs ? []
|
||||||
, patches
|
, patches ? []
|
||||||
, sourceRoot
|
, sourceRoot
|
||||||
, sha256
|
, sha256
|
||||||
, cargoUpdateHook ? ""
|
, cargoUpdateHook ? ""
|
||||||
|
|
|
@ -19,17 +19,17 @@
|
||||||
}.${cpu.name} or cpu.name;
|
}.${cpu.name} or cpu.name;
|
||||||
in "${cpu_}-${vendor.name}-${kernel.name}${lib.optionalString (abi.name != "unknown") "-${abi.name}"}";
|
in "${cpu_}-${vendor.name}-${kernel.name}${lib.optionalString (abi.name != "unknown") "-${abi.name}"}";
|
||||||
|
|
||||||
makeRustPlatform = { rustc, cargo, ... }: {
|
makeRustPlatform = { rustc, cargo, ... }: rec {
|
||||||
rust = {
|
rust = {
|
||||||
inherit rustc cargo;
|
inherit rustc cargo;
|
||||||
};
|
};
|
||||||
|
|
||||||
buildRustPackage = callPackage ../../../build-support/rust {
|
fetchcargo = buildPackages.callPackage ../../../build-support/rust/fetchcargo.nix {
|
||||||
inherit rustc cargo;
|
inherit cargo;
|
||||||
|
};
|
||||||
|
|
||||||
fetchcargo = buildPackages.callPackage ../../../build-support/rust/fetchcargo.nix {
|
buildRustPackage = callPackage ../../../build-support/rust {
|
||||||
inherit cargo;
|
inherit rustc cargo fetchcargo;
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
rustcSrc = callPackage ./rust-src.nix {
|
rustcSrc = callPackage ./rust-src.nix {
|
||||||
|
|
Loading…
Reference in a new issue