My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/flake.nix

49 lines
1.4 KiB

{
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;
rust-nightly = pkgs.latest.rustChannels.nightly.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;
kind-nightly = (pkgs.rustChannelOf { channel = "nightly"; date = "2021-01-01"; }).rust;
url-fix = (pkgs.rustChannelOf { channel = "nightly"; date = "2019-01-10"; }).rust;
};
});
}