heroic: simplify code to make node-gyp run offline
Co-authored-by: TomaSajt <62384384+TomaSajt@users.noreply.github.com>
This commit is contained in:
co-authored by
TomaSajt
parent
0dc6e3caaa
commit
4f25858e08
@@ -53,11 +53,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
runHook preBuild
|
||||
|
||||
# set nodedir to prevent node-gyp from downloading headers
|
||||
# taken from https://nixos.org/manual/nixpkgs/stable/#javascript-tool-specific
|
||||
mkdir -p $HOME/.node-gyp/${nodejs.version}
|
||||
echo 9 > $HOME/.node-gyp/${nodejs.version}/installVersion
|
||||
ln -sfv ${nodejs}/include $HOME/.node-gyp/${nodejs.version}
|
||||
export npm_config_nodedir=${nodejs}
|
||||
export npm_config_nodedir=${electron.headers}
|
||||
|
||||
pnpm --offline electron-vite build
|
||||
pnpm --offline electron-builder \
|
||||
|
||||
Reference in New Issue
Block a user