summaryrefslogtreecommitdiff
path: root/2023/Go/flake.nix
blob: 39dda896e98f07ec6aaa26ea798eb844caca4626 (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
{
  description = "Advent of Code 2023: Go";

  inputs = {
    nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
  };

  outputs =
    { nixpkgs, ... }:
    let
      pkgs = nixpkgs.legacyPackages.x86_64-linux;
    in
    {
      devShells.x86_64-linux.default = pkgs.mkShell {
        # build tools
        nativeBuildInputs = with pkgs; [
          go
        ];
        # dependencies
        buildInputs = with pkgs; [
          delve
          gopls
          gotools
          golangci-lint
        ];
      };
    };
}