nixpkgs/pkgs/development/compilers/go/setup-hook.sh

6 lines
98 B
Bash

addToGoPath() {
addToSearchPath GOPATH $1/share/go
}
addEnvHooks "$targetOffset" addToGoPath