1{
 2  description = "workspace configuration for git-bug";
 3
 4  inputs = {
 5    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
 6    flake-utils.url = "github:numtide/flake-utils";
 7  };
 8
 9  outputs =
10    {
11      self,
12      flake-utils,
13      nixpkgs,
14    }:
15    flake-utils.lib.eachDefaultSystem (
16      system:
17      let
18        pkgs = nixpkgs.legacyPackages.${system};
19      in
20      {
21        devShell = pkgs.mkShell {
22          packages = with pkgs; [
23            codespell
24            delve
25            gh
26            git
27            go
28            golangci-lint
29            nixfmt-rfc-style
30            nodePackages.prettier
31            nodejs
32            pnpm
33          ];
34
35          shellHook = ''
36            # Use //:.gitmessage as the commit message template
37            ${pkgs.git}/bin/git config --local commit.template ".gitmessage"
38
39            # Use a common, shared file as the default for running
40            # git-blame with the `--ignore-revs` flag
41            ${pkgs.git}/bin/git config --local blame.ignoreRevsFile ".git-blame-ignore-revs"
42          '';
43        };
44      }
45    );
46}