{ inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; flake-parts.url = "github:hercules-ci/flake-parts"; rust-overlay.url = "github:oxalica/rust-overlay"; }; outputs = inputs@{ flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs; } { systems = [ "x86_64-linux" ]; perSystem = { system, pkgs, ... }: { _module.args.pkgs = import inputs.nixpkgs { inherit system; overlays = [ inputs.rust-overlay.overlays.default ]; }; devShells.default = let my-rust = pkgs.rust-bin.stable.latest.default.override { extensions = [ "rust-src" ]; }; in pkgs.mkShell { buildInputs = [ pkgs.git my-rust ]; }; }; }; }