forked from continuwuation/continuwuity
31 lines
749 B
Nix
31 lines
749 B
Nix
{ inputs, ... }:
|
|
{
|
|
perSystem =
|
|
{
|
|
system,
|
|
...
|
|
}:
|
|
{
|
|
packages =
|
|
let
|
|
fnx = inputs.fenix.packages.${system};
|
|
|
|
stable = fnx.fromToolchainFile {
|
|
file = inputs.self + "/rust-toolchain.toml";
|
|
|
|
# See also `rust-toolchain.toml`
|
|
sha256 = "sha256-+9FmLhAOezBZCOziO0Qct1NOrfpjNsXxc/8I0c7BdKE=";
|
|
};
|
|
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
|
|
];
|
|
};
|
|
};
|
|
}
|