nixpkgs-immich/pkgs/development/web/nodejs/gyp-patches-v22-import-sys.patch
2024-09-17 10:23:40 -06:00

15 lines
383 B
Diff

For some reason Node.js v22 has two different GYP versions vendored, and
only one of them contains `import sys`.
--- a/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py
+++ b/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/generator/make.py
@@ -25,6 +25,7 @@
import os
import re
import subprocess
+import sys
import gyp
import gyp.common
import gyp.xcode_emulation