mirror of
https://github.com/status-im/status-react.git
synced 2025-01-11 11:34:45 +00:00
1ee16da0c7
nix: use nixpkgs unstable for gradle 8.8 nix: ldflags are expected to be a list chore: fix deprecated vendorSha256 nix: bump jdk to 17 & pass java version to gradle make: set universalApk false in run-android target nix: fix --replace deprecation warning - https://github.com/NixOS/nixpkgs/pull/260776 ios: update pod and gem lockfiles nix: bump nodejs to 20.12.2 nix: add Xcode 16.0 to allowed versions chore: upgrade rn-image-crop-picker lib nix: full path for missing dep in node_modules sh e2e: removed redundant element --------- Co-authored-by: Yevheniia Berdnyk <ie.berdnyk@gmail.com>
19 lines
640 B
Nix
19 lines
640 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.
|
|
#
|
|
|
|
{ go }:
|
|
|
|
go.overrideDerivation (oldAttrs: {
|
|
postPatch = (oldAttrs.postPatch or "") + ''
|
|
substituteInPlace "src/cmd/go/internal/work/action.go" --replace-quiet \
|
|
'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")
|
|
}'
|
|
'';
|
|
})
|