diff --git a/flake.nix b/flake.nix index eb28fe0f..980d2998 100644 --- a/flake.nix +++ b/flake.nix @@ -38,7 +38,31 @@ }; }; - devShells.default = devshell.fromTOML ./devshell.toml; + devShells = { + default = devshell.mkShell { + commands = { + packages = [ + "diffutils" # used by golangci-lint + "goreleaser" + ]; + scripts = [ + { + prefix = "nix run .#"; + inherit packages; + } + { + name = "nix fmt"; + help = "format Nix files"; + } + ]; + utilites = [ + [ "GitHub utility" "gitAndTools.hub" ] + [ "golang linter" "golangci-lint" ] + ]; + }; + }; + toml = devshell.fromTOML ./devshell.toml; + }; legacyPackages = import inputs.self { inherit system;