Unverified Commit c6afedcc authored by Toma's avatar Toma Committed by GitHub
Browse files

excalidraw_export: bump nan version to fix build (#383101)

parents 58d29982 51ace5ab
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
diff --git a/package-lock.json b/package-lock.json
index 89dd54f..2f364e4 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -805,9 +805,10 @@
       "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
     },
     "node_modules/nan": {
-      "version": "2.18.0",
-      "resolved": "https://registry.npmjs.org/nan/-/nan-2.18.0.tgz",
-      "integrity": "sha512-W7tfG7vMOGtD30sHoZSSc/JVYiyDPEyQVso/Zz+/uQd0B0L46gtC+pHha5FFMRpil6fm/AoEcRWyOVi4+E/f8w=="
+      "version": "2.22.0",
+      "resolved": "https://registry.npmjs.org/nan/-/nan-2.22.0.tgz",
+      "integrity": "sha512-nbajikzWTMwsW+eSsNm3QwlOs7het9gGJU5dDZzRTQGk03vyBOauxgI4VakDzE0PtsGTmXPsXTbbjVhRwR5mpw==",
+      "license": "MIT"
     },
     "node_modules/node-fetch": {
       "version": "2.7.0",
+7 −3
Original line number Diff line number Diff line
@@ -5,7 +5,6 @@
  cairo,
  pango,
  pkg-config,
  stdenv,
}:

buildNpmPackage {
@@ -19,7 +18,13 @@ buildNpmPackage {
    hash = "sha256-E5kYI8+hzObd2WNVBd0aQDKMH1Sns539loCQfClJs1Q=";
  };

  npmDepsHash = "sha256-5yec7BCi1c/e+y00TqxIeoazs49+WdKdfsskAqnVkFs=";
  patches = [
    # for compatibility with nodejs_22
    # generated by running: `npm update nan`
    ./bump-nan.patch
  ];

  npmDepsHash = "sha256-bU+q83Pmw6+mCF5rTR0DyYstUYVN+YxH9T9H7ZA15so=";

  npmBuildScript = "compile";

@@ -35,6 +40,5 @@ buildNpmPackage {
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ venikx ];
    mainProgram = "excalidraw_export";
    broken = stdenv.hostPlatform.isDarwin;
  };
}