3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/compilers/go/setup-hook.sh
Emery Hemingway faa5dccab8 new Go support function 'buildGoPackage'
add a setupHook to the Go compiler that builds a GOPATH
new buildGoPackage function that overides the phases of stdenv
2015-02-03 14:21:48 +01:00

6 lines
96 B
Bash

addToGoPath() {
addToSearchPath GOPATH $1/share/go
}
envHooks=(${envHooks[@]} addToGoPath)