File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 ../../deps/v8
3434 ../../node.gyp
3535 ../../node.gypi
36- ../../src/node_version.h
37- ../../tools/configure.d/nodedownload.py
38- ../../tools/getmoduleversion.py
39- ../../tools/getnapibuildversion.py
4036 ../../tools/gyp/pylib
4137 ../../tools/gyp_node.py
42- ../../tools/utils.py
4338 ../../tools/v8_gypfiles/abseil.gyp
4439 ../../tools/v8_gypfiles/features.gypi
4540 ../../tools/v8_gypfiles/ForEachFormat.py
@@ -103,6 +98,30 @@ stdenv.mkDerivation (finalAttrs: {
10398 patches+=("$filtered")
10499 fi
105100 done
101+ ''
102+ # We also need to mock some Python util files that are not used to configure Python.
103+ # Mocking lets us avoid rebuilding the whole derivation if there's a unrelated
104+ # change in one of those files.
105+ + ''
106+ mkdir -p tools/configure.d
107+ cat -> tools/configure.d/nodedownload.py <<'EOF'
108+ def parse(opt):
109+ return {}
110+ def help():
111+ return ""
112+ EOF
113+ cat -> tools/getmoduleversion.py <<'EOF'
114+ def get_version():
115+ return "99"
116+ EOF
117+ cat -> tools/getnapibuildversion.py <<'EOF'
118+ def get_napi_version():
119+ return "9"
120+ EOF
121+ cat -> tools/utils.py <<'EOF'
122+ def SearchFiles(dir, ext):
123+ return []
124+ EOF
106125 '' ;
107126 # We need to remove the node_inspector.gypi ref so GYP does not search for it.
108127 postPatch = ''
You can’t perform that action at this time.
0 commit comments