diff options
| author | DJ O'Leary <dijitol@proton.me> | 2025-03-06 02:44:25 +0100 |
|---|---|---|
| committer | DJ O'Leary <dijitol@proton.me> | 2025-03-06 02:44:25 +0100 |
| commit | afca6977a36c575143ea635e4ca8aeedecc23b24 (patch) | |
| tree | 1837c299a2e41a9bb2c8bedbcb76962af6ee5e28 /2023/Go/flake.nix | |
| parent | b0a060330a6ed3c6c4c1d8c39dc702d8654672df (diff) | |
feat: Replace Go shell with flake
Diffstat (limited to '2023/Go/flake.nix')
| -rw-r--r-- | 2023/Go/flake.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/2023/Go/flake.nix b/2023/Go/flake.nix new file mode 100644 index 0000000..39dda89 --- /dev/null +++ b/2023/Go/flake.nix @@ -0,0 +1,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 + ]; + }; + }; +} |
