From afca6977a36c575143ea635e4ca8aeedecc23b24 Mon Sep 17 00:00:00 2001 From: DJ O'Leary Date: Thu, 6 Mar 2025 02:44:25 +0100 Subject: feat: Replace Go shell with flake --- 2023/Go/flake.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 2023/Go/flake.nix (limited to '2023/Go/flake.nix') 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 + ]; + }; + }; +} -- cgit v1.2.3