mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-19 07:59:15 +00:00
add a setupHook to the Go compiler that builds a GOPATH new buildGoPackage function that overides the phases of stdenv
5 lines
96 B
Bash
5 lines
96 B
Bash
addToGoPath() {
|
|
addToSearchPath GOPATH $1/share/go
|
|
}
|
|
|
|
envHooks=(${envHooks[@]} addToGoPath)
|