From 3742aa3158053cac86603d36f660bbeb083eb13a Mon Sep 17 00:00:00 2001 From: Christian Kampka Date: Sun, 8 Dec 2024 13:04:22 +0100 Subject: [PATCH] install go and gopls in nix flake devShell --- flake.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index 880b1279b6..9f858541df 100644 --- a/flake.nix +++ b/flake.nix @@ -3,14 +3,15 @@ nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; flake-utils.url = "github:numtide/flake-utils"; }; - outputs = - { nixpkgs, flake-utils, ... }: + outputs = { + nixpkgs, + flake-utils, + ... + }: flake-utils.lib.eachDefaultSystem ( - system: - let + system: let pkgs = nixpkgs.legacyPackages.${system}; - in - { + in { devShells.default = pkgs.mkShell { buildInputs = with pkgs; [ # generic @@ -31,6 +32,8 @@ # backend gofumpt sqlite + go + gopls ]; }; }