mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 19:30:11 +00:00
immich: prevent node-gyp .pyc unreproducible files (#567235)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user