continuwuity/nix/rust.nix
renovate d4e7e5d362
Some checks failed
Documentation / Build and Deploy Documentation (push) Successful in 1m3s
Checks / Prek / Check changed files (push) Successful in 7s
Checks / Prek / Pre-commit & Formatting (push) Successful in 1m12s
Release Docker Image / Build linux-arm64 (release) (push) Successful in 9m35s
Checks / Prek / Clippy and Cargo Tests (push) Has been skipped
Release Docker Image / Build linux-amd64 (release) (push) Successful in 13m45s
Release Docker Image / Create Multi-arch Release Manifest (push) Successful in 20s
Release Docker Image / Build linux-arm64 (max-perf) (push) Failing after 26m55s
Release Docker Image / Build linux-amd64 (max-perf) (push) Successful in 43m56s
Release Docker Image / Create Max-Perf Manifest (push) Has been skipped
Release Docker Image / Mirror Images (push) Has been skipped
Release Docker Image / Release Binaries (push) Has been skipped
chore(Nix): Updated flake hashes
2026-09-08 13:41:16 +00:00

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-p8h3Sl/YRByZfZTAKXdsvF6xEenXKrXSVvpphmZENH4=";
};
in
{
_module.args = { inherit mkToolchain; };
packages =
let
fnx = inputs'.fenix.packages;
stable-toolchain = (mkToolchain fnx).toolchain;
in
{
inherit stable-toolchain;
dev-toolchain = fnx.combine [
# use the nightly rustfmt because we use nightly features
fnx.complete.rustfmt
stable-toolchain
];
};
};
}