continuwuity/nix/rust.nix
Henry-Hiles e38c7fd71e
Some checks failed
Documentation / Build and Deploy Documentation (pull_request) Has been skipped
Auto Labeler / Apply labels based on changed files (pull_request_target) Successful in 3s
Checks / Prek / Check changed files (pull_request) Successful in 4s
Checks / Changelog / Check changelog is added (pull_request_target) Successful in 9s
Checks / Prek / Clippy and Cargo Tests (pull_request) Has been skipped
Checks / Prek / Pre-commit & Formatting (pull_request) Successful in 1m6s
Update flake hashes / update-flake-hashes (pull_request) Has been cancelled
Build / Debian DEB / build (debian-latest) (push) Failing after 8m59s
Build / Debian DEB / build (debian-oldstable) (push) Failing after 10m38s
Build / Debian DEB / build (ubuntu-latest) (push) Failing after 9m53s
Build / Debian DEB / build (ubuntu-previous) (push) Failing after 9m55s
Build / Static via Nix / Build conduwuit-linux-static-amd64 Binary (push) Successful in 18m20s
Build / Static via Nix / Build conduwuit-linux-static-arm64 Binary (push) Successful in 15m14s
Build / Static via Nix / Build conduwuit-haswell-linux-static-amd64-maxperf Binary (push) Successful in 41m4s
Documentation / Build and Deploy Documentation (push) Successful in 1m17s
Build / Fedora RPM / build (push) Successful in 50m10s
Release Docker Image / Build linux-amd64 (release) (push) Successful in 14m54s
Release Docker Image / Build linux-arm64 (release) (push) Successful in 13m34s
Build / Static via Nix / Build conduwuit-linux-static-arm64-maxperf Binary (push) Successful in 27m37s
Build / Static via Nix / Release Binaries (push) Successful in 24s
Release Docker Image / Create Multi-arch Release Manifest (push) Successful in 21s
Release Docker Image / Build linux-amd64 (max-perf) (push) Successful in 33m47s
Release Docker Image / Build linux-arm64 (max-perf) (push) Successful in 29m1s
Release Docker Image / Create Max-Perf Manifest (push) Successful in 18s
Release Docker Image / Release Binaries (push) Successful in 23s
Release Docker Image / Mirror Images (push) Successful in 5m22s
chore: use older hashes
Needed for backport.
2026-06-20 16:53:31 -04: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-sqSWJDUxc+zaz1nBWMAJKTAGBuGWP25GCftIOlCEAtA=";
};
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
];
};
};
}