forked from mirrors/nixpkgs
952f4fda86
It is now clearer what is supposed to be in the rust attribute set without having studied type theory. The amount of code is identically.
19 lines
340 B
Nix
19 lines
340 B
Nix
{ callPackage }:
|
|
{ rustc, cargo, ... }: {
|
|
rust = {
|
|
inherit rustc cargo;
|
|
};
|
|
|
|
buildRustPackage = callPackage ./default.nix {
|
|
inherit rustc cargo;
|
|
|
|
fetchcargo = callPackage ./fetchcargo.nix {
|
|
inherit cargo;
|
|
};
|
|
};
|
|
|
|
rustcSrc = callPackage ../../development/compilers/rust/rust-src.nix {
|
|
inherit rustc;
|
|
};
|
|
}
|