-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
flake.nix
46 lines (40 loc) · 1.16 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
description = ''
Pure and reproducible overlay for binary distributed rust toolchains.
A better replacement for github:mozilla/nixpkgs-mozilla
'';
inputs = {
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }@inputs: let
inherit (nixpkgs) lib;
overlay = import ./default.nix;
allSystems = [
"aarch64-linux"
"armv6l-linux"
"armv7a-linux"
"armv7l-linux"
"x86_64-linux"
"x86_64-darwin"
# "aarch64-darwin"
];
in {
overlay = final: prev: overlay final prev;
} // flake-utils.lib.eachSystem allSystems (system: let
pkgs = import nixpkgs { inherit system; overlays = [ overlay ]; };
in rec {
defaultApp = {
type = "app";
program = "${defaultPackage}/bin/rustc";
};
defaultPackage = packages.rust-stable;
packages = {
rust-stable = pkgs.latest.rustChannels.stable.rust;
};
checks = {
kind2 = (pkgs.rustChannelOf { channel = "1.48.0"; }).rust;
kind0 = (pkgs.rustChannelOf { channel = "1.47.0"; }).rust;
kind1 = (pkgs.rustChannelOf { channel = "1.34.2"; }).llvm-tools-preview;
};
});
}