Move runHook preConfigure so it can patch deps
This commit is contained in:
committed by
Stéphan Kochen
parent
e631ca97c8
commit
cface0f015
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -100,8 +100,6 @@ let
|
|||||||
yarn_enable_nixify = "false";
|
yarn_enable_nixify = "false";
|
||||||
|
|
||||||
configurePhase = ''
|
configurePhase = ''
|
||||||
runHook preConfigure
|
|
||||||
|
|
||||||
# Copy over the Yarn cache.
|
# Copy over the Yarn cache.
|
||||||
rm -fr '${cacheFolder}'
|
rm -fr '${cacheFolder}'
|
||||||
mkdir -p '${cacheFolder}'
|
mkdir -p '${cacheFolder}'
|
||||||
@@ -112,6 +110,16 @@ let
|
|||||||
# Yarn may need a writable home directory.
|
# Yarn may need a writable home directory.
|
||||||
export yarn_global_folder="$TMP"
|
export yarn_global_folder="$TMP"
|
||||||
|
|
||||||
|
# Some node-gyp calls may call out to npm, which could fail due to an
|
||||||
|
# read-only home dir.
|
||||||
|
export HOME="$TMP"
|
||||||
|
|
||||||
|
# running preConfigure after the cache is populated allows for
|
||||||
|
# preConfigure to contain substituteInPlace for dependencies as well as the
|
||||||
|
# main project. This is necessary for native bindings that maybe have
|
||||||
|
# hardcoded values.
|
||||||
|
runHook preConfigure
|
||||||
|
|
||||||
@@ISOLATED_INTEGRATION@@
|
@@ISOLATED_INTEGRATION@@
|
||||||
|
|
||||||
# Run normal Yarn install to complete dependency installation.
|
# Run normal Yarn install to complete dependency installation.
|
||||||
|
|||||||
Reference in New Issue
Block a user