28 lines
593 B
Nix
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
|
|
];
|
|
};
|
|
});
|
|
};
|
|
}
|