{ description = "Rust dev flake"; inputs = { nixpkgs.url = "nixpkgs"; # System's nixpkgs revision utils.url = "flake-utils"; # Same as above }; outputs = { self, nixpkgs, utils, }: utils.lib.eachDefaultSystem ( system: let pkgs = import nixpkgs { inherit system; }; in { devShells.default = pkgs.mkShell { name = "rust shell"; buildInputs = with pkgs; [ # Toolchain rustc cargo rustfmt clippy rust-analyzer # Common deps pkg-config openssl ]; # Env vars shellHook = '' echo Rust loaded ! ''; }; } ); }