summary refs log tree commit diff
path: root/maintainers/scripts/eval-release.sh
diff options
context:
space:
mode:
authorAntoine Eiche <lewo@abesis.fr>2018-11-24 18:56:37 +0100
committerAntoine Eiche <lewo@abesis.fr>2019-01-25 12:47:00 +0100
commit1f8c96054ee971397ffd4727930a9252552ac9bd (patch)
tree7cb0d34c03f2bec0e158351a25bbded3b8768ee1 /maintainers/scripts/eval-release.sh
parentea90e519a20df55f1842d0ce37a8db0c69412bad (diff)
downloadnixpkgs-1f8c96054ee971397ffd4727930a9252552ac9bd.tar
nixpkgs-1f8c96054ee971397ffd4727930a9252552ac9bd.tar.gz
nixpkgs-1f8c96054ee971397ffd4727930a9252552ac9bd.tar.bz2
nixpkgs-1f8c96054ee971397ffd4727930a9252552ac9bd.tar.lz
nixpkgs-1f8c96054ee971397ffd4727930a9252552ac9bd.tar.xz
nixpkgs-1f8c96054ee971397ffd4727930a9252552ac9bd.tar.zst
nixpkgs-1f8c96054ee971397ffd4727930a9252552ac9bd.zip
eval-release.sh: increase nix-instantiate heap size to 2GB
Otherwise, nix-instantiate fails with
Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS
Diffstat (limited to 'maintainers/scripts/eval-release.sh')
-rwxr-xr-xmaintainers/scripts/eval-release.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/maintainers/scripts/eval-release.sh b/maintainers/scripts/eval-release.sh
index 9ef531319e4..e0dfaf1de74 100755
--- a/maintainers/scripts/eval-release.sh
+++ b/maintainers/scripts/eval-release.sh
@@ -4,4 +4,8 @@ if [[ -z "$VERBOSE" ]]; then
   echo "You may set VERBOSE=1 to see debug output or to any other non-empty string to make this script completely silent"
 fi
 unset HOME NIXPKGS_CONFIG # Force empty config
+
+# With the default heap size (380MB), nix-instantiate fails:
+# Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS
+export GC_INITIAL_HEAP_SIZE=${GC_INITIAL_HEAP_SIZE:-2000000000} # 2GB
 nix-instantiate --strict --eval-only --xml --show-trace "$(dirname "$0")"/eval-release.nix 2>&1 > /dev/null