From 446c7611084f5e09803a403e89eb4b740ba1fb58 Mon Sep 17 00:00:00 2001 From: surtur Date: Wed, 20 Apr 2022 23:07:23 +0200 Subject: [PATCH] specify shell environment --- flake.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flake.nix b/flake.nix index 222db55..1a87b60 100644 --- a/flake.nix +++ b/flake.nix @@ -62,5 +62,11 @@ program = "${self.packages.${system}.go-hello}/bin/go-hello"; }); + devShell = forAllSystems (system: + let pkgs = nixpkgsFor.${system}; + in pkgs.mkShell { + buildInputs = with pkgs; [ go gopls goimports go-tools ]; + }); + }; }