mirror of
https://github.com/status-im/status-react.git
synced 2025-01-10 11:06:25 +00:00
Jakub Sokołowski
5380fcd68f
Notable version upgrades: - Go: 1.13.4 > 1.14.0 - GoMobile: 20190806 > 20200329 - NodeJS: 10.17.0 > 12.0.0 - Yarn: 1.19.1 > 1.22.4 - Gradle: 5.1.1 > 5.6.4 - OpenJDK: 1.8.0-222 > 8u242-b08 - Clojure: 1.10.0.411 > 1.10.1.507 OpenSSL is still stuck on 1.0.2u due to Android SDK. Signed-off-by: Jakub Sokołowski <jakub@status.im>
23 lines
655 B
Nix
23 lines
655 B
Nix
#
|
|
# Patch the Go compiler so that we can have a say (using a NIX_GOWORKDIR env variable)
|
|
# as to the temporary directory it uses for linking, since that directory path ends up
|
|
# in the string table and .gnu.version_d ELF header.
|
|
#
|
|
|
|
{ baseGo }:
|
|
|
|
let
|
|
go = baseGo.overrideDerivation(oldAttrs: {
|
|
postPatch = (oldAttrs.postPatch or "") + ''
|
|
substituteInPlace "src/cmd/go/internal/work/action.go" --replace \
|
|
'tmp, err := ioutil.TempDir(os.Getenv("GOTMPDIR"), "go-build")' \
|
|
'var err error
|
|
tmp := os.Getenv("NIX_GOWORKDIR")
|
|
if tmp == "" {
|
|
tmp, err = ioutil.TempDir(os.Getenv("GOTMPDIR"), "go-build")
|
|
}'
|
|
'';
|
|
});
|
|
|
|
in go
|