blob: e2201f92a3444388a1e837633b85f2d0368e2fc1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
{inputs, ...}: {
perSystem = {system, ...}: let
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [inputs.fenix.overlays.default];
};
toolchain = with pkgs.fenix;
with stable;
combine [
cargo
rustc
rustfmt
clippy
targets."x86_64-unknown-linux-musl".stable.rust-std
];
in {
_module.args = {
inherit pkgs toolchain;
craneLib = (inputs.crane.mkLib pkgs).overrideToolchain toolchain;
};
};
}
|