summaryrefslogtreecommitdiff
path: root/2023/Go/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to '2023/Go/flake.nix')
-rw-r--r--2023/Go/flake.nix28
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
+ ];
+ };
+ };
+}