yoke/flake.nix
2025-10-31 14:37:46 +11:00

28 lines
593 B
Nix

{
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
inputs.systems.url = "github:nix-systems/default-linux";
outputs =
{
self,
nixpkgs,
systems,
}:
let
forAllSystems =
func: nixpkgs.lib.genAttrs (import systems) (system: func (import nixpkgs { inherit system; }));
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
cargo
rustc
rust-analyzer
rustfmt
clippy
];
};
});
};
}