rustPlatform.fetchcargo: expose

Changed files
+9 -9
pkgs
build-support
development
compilers
+3 -3
pkgs/build-support/rust/fetchcargo.nix
···
};
in
{ name ? "cargo-deps"
-
, src
-
, srcs
-
, patches
+
, src ? null
+
, srcs ? []
+
, patches ? []
, sourceRoot
, sha256
, cargoUpdateHook ? ""
+6 -6
pkgs/development/compilers/rust/default.nix
···
}.${cpu.name} or cpu.name;
in "${cpu_}-${vendor.name}-${kernel.name}${lib.optionalString (abi.name != "unknown") "-${abi.name}"}";
-
makeRustPlatform = { rustc, cargo, ... }: {
+
makeRustPlatform = { rustc, cargo, ... }: rec {
rust = {
inherit rustc cargo;
};
-
buildRustPackage = callPackage ../../../build-support/rust {
-
inherit rustc cargo;
+
fetchcargo = buildPackages.callPackage ../../../build-support/rust/fetchcargo.nix {
+
inherit cargo;
+
};
-
fetchcargo = buildPackages.callPackage ../../../build-support/rust/fetchcargo.nix {
-
inherit cargo;
-
};
+
buildRustPackage = callPackage ../../../build-support/rust {
+
inherit rustc cargo fetchcargo;
};
rustcSrc = callPackage ./rust-src.nix {