2020-10-01 22:51:46 +01: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 {
|
2021-02-15 09:26:40 +00:00
|
|
|
inherit cargoBuildHook cargoCheckHook cargoInstallHook cargoSetupHook
|
|
|
|
fetchCargoTarball rustc;
|
2020-10-01 22:51:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
rustcSrc = callPackage ./rust-src.nix {
|
|
|
|
inherit rustc;
|
|
|
|
};
|
2020-11-06 16:31:25 +00:00
|
|
|
|
|
|
|
rustLibSrc = callPackage ./rust-lib-src.nix {
|
|
|
|
inherit rustc;
|
|
|
|
};
|
2021-02-09 10:38:25 +00:00
|
|
|
|
|
|
|
# Hooks
|
2021-02-11 16:32:47 +00:00
|
|
|
inherit (callPackage ../../../build-support/rust/hooks {
|
|
|
|
inherit cargo;
|
2021-02-15 09:26:40 +00:00
|
|
|
}) cargoBuildHook cargoCheckHook cargoInstallHook cargoSetupHook maturinBuildHook;
|
2020-10-01 22:51:46 +01:00
|
|
|
}
|