summaryrefslogtreecommitdiff
path: root/templates/go/flake.nix
blob: d99ce9a274d9174a73a8cd4f70e04e256c0636ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
  inputs = {
    nixpkgs.url = "nixpkgs";
    nix-filter.url = "github:numtide/nix-filter";
    flake-utils.url = "github:numtide/flake-utils";
  };
  outputs = {
    self,
    flake-utils,
    ...
  } @ inputs:
    flake-utils.lib.eachDefaultSystem (system: let
      pkgs =
        import inputs.nixpkgs
        {
          inherit system;
        };
    in {
      devShells.default = pkgs.mkShell {
        name = "dev";
        buildInputs = with pkgs; [
          go
          gotools
          gofumpt
        ];
      };
    });
}