deepin(go-package): use addToSearchPath to set GOPATH
This commit is contained in:
@@ -76,9 +76,9 @@ buildGoPackage rec {
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
GOPATH="$GOPATH:${go-dbus-factory}/share/gocode"
|
||||
GOPATH="$GOPATH:${go-gir-generator}/share/gocode"
|
||||
GOPATH="$GOPATH:${go-lib}/share/gocode"
|
||||
addToSearchPath GOPATH "${go-dbus-factory}/share/gocode"
|
||||
addToSearchPath GOPATH "${go-gir-generator}/share/gocode"
|
||||
addToSearchPath GOPATH "${go-lib}/share/gocode"
|
||||
make -C go/src/${goPackagePath}
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
@@ -32,7 +32,7 @@ buildGoPackage rec {
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
GOPATH="$GOPATH:${go-lib}/share/gocode"
|
||||
addToSearchPath GOPATH "${go-lib}/share/gocode"
|
||||
make ARCH=${stdenv.targetPlatform.linuxArch} -C go/src/${goPackagePath}
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
@@ -59,9 +59,9 @@ buildGoPackage rec {
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
GOPATH="$GOPATH:${go-dbus-factory}/share/gocode"
|
||||
GOPATH="$GOPATH:${go-gir-generator}/share/gocode"
|
||||
GOPATH="$GOPATH:${go-lib}/share/gocode"
|
||||
addToSearchPath GOPATH "${go-dbus-factory}/share/gocode"
|
||||
addToSearchPath GOPATH "${go-gir-generator}/share/gocode"
|
||||
addToSearchPath GOPATH "${go-lib}/share/gocode"
|
||||
make -C go/src/${goPackagePath}
|
||||
runHook postBuild
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user