1 { lib, buildGoModule, fetchFromGitHub }:
7 # using GitHub instead of https://go.googlesource.com/tools because Gitiles UI is to basic to browse
8 src = fetchFromGitHub {
12 sha256 = "sha256-z5XJ7tflOfDBtv4rp7WEjnHsXIyjNw205PhazEvaYcw=";
16 # The gopls folder contains a Go submodule which causes a build failure
17 # and lives in its own package named gopls.
19 # getgo is an experimental go installer which adds generic named server and client binaries to $out/bin
23 vendorHash = "sha256-fp0pb3EcGRDWlSpgel4pYRdsPJGk8/d57EjWJ+fzq7g=";
27 # Set GOTOOLDIR for derivations adding this to buildInputs
29 mkdir -p $out/nix-support
30 substitute ${./setup-hook.sh} $out/nix-support/setup-hook \
31 --subst-var-by bin $out
35 description = "Additional tools for Go development";
37 This package contains tools like: godoc, goimports, callgraph, digraph, stringer or toolstash.
39 homepage = "https://go.googlesource.com/tools";
40 license = licenses.bsd3;
41 maintainers = with maintainers; [ danderson SuperSandro2000 ];