2020-10-16 20:44:37 +00:00
|
|
|
{ buildPackages, callPackage }:
|
|
|
|
|
|
|
|
{ rustc, cargo, ... }:
|
|
|
|
|
|
|
|
rec {
|
|
|
|
rust = {
|
|
|
|
inherit rustc cargo;
|
|
|
|
};
|
|
|
|
|
|
|
|
fetchCargoTarball = buildPackages.callPackage ../../../build-support/rust/fetchCargoTarball.nix {
|
|
|
|
inherit cargo;
|
|
|
|
};
|
|
|
|
|
|
|
|
buildRustPackage = callPackage ../../../build-support/rust {
|
|
|
|
inherit rustc cargo fetchCargoTarball;
|
|
|
|
};
|
|
|
|
|
|
|
|
rustcSrc = callPackage ./rust-src.nix {
|
|
|
|
inherit rustc;
|
|
|
|
};
|
2020-11-09 15:59:12 +00:00
|
|
|
|
|
|
|
rustLibSrc = callPackage ./rust-lib-src.nix {
|
|
|
|
inherit rustc;
|
|
|
|
};
|
2020-10-16 20:44:37 +00:00
|
|
|
}
|