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