{ inputs = { nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/*.tar.gz"; mfgames-project-setup.url = "git+https://src.mfgames.com/nixos-contrib/mfgames-project-setup-flake.git"; mfgames-conventional-commit.url = "git+https://src.mfgames.com/mfgames-cli/mfgames-conventional-commit.git"; }; outputs = inputs @ { self, nixpkgs, mfgames-project-setup, ... }: let # Helpers for producing system-specific outputs supportedSystems = [ "x86_64-linux" ]; forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f { inherit system; pkgs = import nixpkgs { inherit system; }; }); in rec { # Set up the developer shell. devShells = forEachSupportedSystem ({ system, pkgs }: let project-config = mfgames-project-setup.lib.mkConfig { inherit system pkgs; contributorCovenant.enable = true; contributorCovenant.contact = "contact@mfgames.com"; developerCertificateOfOrigin.enable = true; dotnet.enable = true; }; in { # Shell default = pkgs.mkShell { packages = [ pkgs.gnugrep pkgs.gawk pkgs.diffutils pkgs.fd pkgs.just pkgs.lefthook pkgs.jq pkgs.dotnet-sdk pkgs.git pkgs.semver-tool inputs.mfgames-conventional-commit.packages.${system}.mfgames-conventional-commit ] ++ project-config.packages; shellHook = project-config.shellHook; }; }); # Formatting for the Nix files formatter = forEachSupportedSystem ({ pkgs, ... }: pkgs.nixpkgs-fmt); }; }