···44444545 runHook prePnpmInstall
46464747- pnpm install \
4747+ if ! pnpm install \
4848 --offline \
4949 --ignore-scripts \
5050 "${pnpmInstallFlags[@]}" \
5151 --frozen-lockfile
5252+ then
5353+ echo
5454+ echo "ERROR: pnpm failed to install dependencies"
5555+ echo
5656+ echo "If you see ERR_PNPM_NO_OFFLINE_TARBALL above this, follow these to fix the issue:"
5757+ echo '1. Set pnpmDeps.hash to "" (empty string)'
5858+ echo "2. Build the derivation and wait for it to fail with a hash mismatch"
5959+ echo "3. Copy the 'got: sha256-' value back into the pnpmDeps.hash field"
6060+ echo
6161+6262+ exit 1
6363+ fi
526453655466 echo "Patching scripts"