{
inputs = {
systems.url = "github:nix-systems/default";
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable";
rust-overlay = {
url = "github:oxalica/rust-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
{
self,
systems,
nixpkgs,
rust-overlay,
}:
let
forEachSystem =
f:
nixpkgs.lib.genAttrs (import systems) (
system:
f (
import nixpkgs {
inherit system;
overlays = [ (import rust-overlay) ];
}
)
);
in
{
formatter = forEachSystem (pkgs: pkgs.treefmt);
devShells = forEachSystem (pkgs: {
default = import ./shell.nix {
inherit pkgs;
};
});
};
}