{ description = "Simple general RCON client"; inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; flake-parts.url = "github:hercules-ci/flake-parts"; treefmt-nix.url = "github:numtide/treefmt-nix"; }; outputs = inputs@{ flake-parts, ... }: flake-parts.lib.mkFlake { inherit inputs; } { imports = [ inputs.treefmt-nix.flakeModule inputs.flake-parts.flakeModules.easyOverlay ]; systems = [ "x86_64-linux" ]; perSystem = { config, pkgs, ... }: { devShells.default = import ./shell.nix { inherit pkgs; }; packages.rscon = pkgs.callPackage ./default.nix { }; packages.default = config.packages.rscon; overlayAttrs = { inherit (config.packages) rscon; }; treefmt.config = { projectRootFile = "flake.nix"; programs = { rustfmt.enable = true; nixpkgs-fmt.enable = true; taplo.enable = true; prettier.enable = true; }; }; }; }; }