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 ];
32
33 shellHook = ''
34 # Use //:.gitmessage as the commit message template
35 ${pkgs.git}/bin/git config --local commit.template ".gitmessage"
36
37 # Use a common, shared file as the default for running
38 # git-blame with the `--ignore-revs` flag
39 ${pkgs.git}/bin/git config --local blame.ignoreRevsFile ".git-blame-ignore-revs"
40 '';
41 };
42 }
43 );
44}