2022-11-29 07:52:21 +01:00
|
|
|
#!/usr/bin/env bash
|
2010-08-18 18:37:46 +02:00
|
|
|
|
2012-01-24 20:10:54 +01:00
|
|
|
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
|
2012-02-07 00:07:21 +01:00
|
|
|
unset HOME NIXPKGS_CONFIG # Force empty config
|
2018-11-24 18:56:37 +01:00
|
|
|
|
|
|
|
# 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
|
2010-08-18 18:37:46 +02:00
|
|
|
nix-instantiate --strict --eval-only --xml --show-trace "$(dirname "$0")"/eval-release.nix 2>&1 > /dev/null
|