Some checks failed
Auto Labeler / Apply labels based on changed files (pull_request_target) Successful in 2s
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 9s
Checks / Prek / Check changed files (pull_request) Successful in 6s
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m12s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
Update flake hashes / update-flake-hashes (pull_request) Has been cancelled
36 lines
799 B
Nix
36 lines
799 B
Nix
{ inputs, ... }:
|
|
{
|
|
perSystem =
|
|
{
|
|
lib,
|
|
inputs',
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
mkToolchain =
|
|
target:
|
|
target.fromToolchainName {
|
|
name = (lib.importTOML "${inputs.self}/rust-toolchain.toml").toolchain.channel;
|
|
sha256 = "sha256-mvUGEOHYJpn3ikC5hckneuGixaC+yGrkMM/liDIDgoU=";
|
|
};
|
|
in
|
|
{
|
|
_module.args = { inherit mkToolchain; };
|
|
|
|
packages =
|
|
let
|
|
fnx = inputs'.fenix.packages;
|
|
stable-toolchain = (mkToolchain fnx).toolchain;
|
|
in
|
|
{
|
|
inherit stable-toolchain;
|
|
|
|
dev-toolchain = fnx.combine [
|
|
stable-toolchain
|
|
# use the nightly rustfmt because we use nightly features
|
|
fnx.complete.rustfmt
|
|
];
|
|
};
|
|
};
|
|
}
|