{ description = "Development environment for mkswap.rs"; inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable-small"; outputs = { self , nixpkgs , ... } @ inputs: let nameValuePair = name: value: { inherit name value; }; genAttrs = names: f: builtins.listToAttrs (map (n: nameValuePair n (f n)) names); allSystems = [ "x86_64-linux" "aarch64-linux" "i686-linux" "x86_64-darwin" ]; forAllSystems = f: genAttrs allSystems (system: f { inherit system; pkgs = import nixpkgs { inherit system; }; }); in { devShell = forAllSystems ({ system, pkgs, ... }: pkgs.mkShell { nativeBuildInputs = with pkgs; [ cargo entr rustfmt clippy ]; }); }; }