Files
continuwuity/nix/packages/rust.nix
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
760 B
Nix
Raw Normal View History

2025-09-24 14:33:20 +02:00
{ inputs, ... }:
{
perSystem =
{
system,
2025-10-21 19:17:55 +02:00
lib,
2025-09-24 14:33:20 +02:00
...
}:
{
packages =
let
fnx = inputs.fenix.packages.${system};
stable = fnx.fromToolchainFile {
file = inputs.self + "/rust-toolchain.toml";
# See also `rust-toolchain.toml`
2025-11-11 14:50:55 +00:00
sha256 = "sha256-SJwZ8g0zF2WrKDVmHrVG3pD2RGoQeo24MEXnNx5FyuI=";
2025-09-24 14:33:20 +02:00
};
in
{
# used for building nix stuff (doesn't include rustfmt overhead)
build-toolchain = stable;
# used for dev shells
dev-toolchain = fnx.combine [
stable
# use the nightly rustfmt because we use nightly features
fnx.complete.rustfmt
];
};
};
}