diff --git a/default.nix b/default.nix index 8c13939..081cd27 100644 --- a/default.nix +++ b/default.nix @@ -1,5 +1,8 @@ -{ buildGoApplication, go, nix, lib, makeWrapper, nix-prefetch-git }: +{ buildGoApplication, go_1_18, nix, lib, makeWrapper, nix-prefetch-git }: +let + go = go_1_18; +in buildGoApplication { inherit go; pname = "gomod2nix"; diff --git a/shell.nix b/shell.nix index 561bcf4..a53475a 100644 --- a/shell.nix +++ b/shell.nix @@ -21,7 +21,7 @@ pkgs.mkShell { buildInputs = [ pkgs.nix-prefetch-git pkgs.nixpkgs-fmt - pkgs.go + pkgs.gomod2nix.go pkgs.gomod2nix ]; }