summary refs log tree commit diff
path: root/pkgs/build-support/rust/make-rust-platform.nix
blob: afbc56865ff72ba7f0e73ebd025ddc4de04b491f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ 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;
  };
}