all repos — erl @ c8ab7c849959313a035bf9e448d110e794190a4f

Execute Reload Loop

initial commit

Alan Pearce
commit

c8ab7c849959313a035bf9e448d110e794190a4f

1 file changed, 27 insertions(+), 0 deletions(-)

changed files
A shell.nix
@@ -0,0 +1,27 @@
+{ + pkgs ? ( + let + inherit (builtins) fetchTree fromJSON readFile; + inherit ((fromJSON (readFile ./flake.lock)).nodes) nixpkgs gomod2nix; + in + import (fetchTree nixpkgs.locked) { + overlays = [ + (import "${fetchTree gomod2nix.locked}/overlay.nix") + ]; + } + ), + mkGoEnv ? pkgs.mkGoEnv, + gomod2nix ? pkgs.gomod2nix, + shellHook ? "", +}: + +let + goEnv = mkGoEnv { pwd = ./.; }; +in +pkgs.mkShell { + inherit shellHook; + packages = [ + goEnv + gomod2nix + ]; +}