immich: prevent node-gyp .pyc unreproducible files (#567235)

This commit is contained in:
Sefa Eyeoglu
2026-09-27 11:46:30 +00:00
committed by GitHub

View File

@@ -169,6 +169,8 @@ stdenv.mkDerivation (finalAttrs: {
env.ESBUILD_BINARY_PATH = lib.getExe esbuild';
# fix for node-gyp, see https://github.com/nodejs/node-gyp/issues/1191#issuecomment-301243919
env.npm_config_nodedir = nodejs;
# Prevent Python (via node-gyp) from writing bytecode to ensure build determinism
env.PYTHONDONTWRITEBYTECODE = "1";
buildPhase = ''
runHook preBuild