wiki-js: drop node version check
We implemented v18 support, so this is not needed.
This commit is contained in:
parent
96fbaff572
commit
93c3b2e75a
|
@ -29,6 +29,7 @@ stdenv.mkDerivation rec {
|
||||||
# [1] https://github.com/requarks/wiki/discussions/6388
|
# [1] https://github.com/requarks/wiki/discussions/6388
|
||||||
# [2] https://nodejs.org/en/blog/release/v17.0.0
|
# [2] https://nodejs.org/en/blog/release/v17.0.0
|
||||||
# [3] https://nodejs.org/en/blog/release/v18.0.0
|
# [3] https://nodejs.org/en/blog/release/v18.0.0
|
||||||
|
patches = [ ./drop-node-check.patch ];
|
||||||
nativeBuildInputs = [ jq moreutils ];
|
nativeBuildInputs = [ jq moreutils ];
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
# Dirty hack to implement nodejs-18 support.
|
# Dirty hack to implement nodejs-18 support.
|
||||||
|
|
19
pkgs/servers/web-apps/wiki-js/drop-node-check.patch
Normal file
19
pkgs/servers/web-apps/wiki-js/drop-node-check.patch
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
diff --git a/server/index.js b/server/index.js
|
||||||
|
index 7cdb4f80..161ebeb7 100644
|
||||||
|
--- a/server/index.js
|
||||||
|
+++ b/server/index.js
|
||||||
|
@@ -8,14 +8,6 @@ const { nanoid } = require('nanoid')
|
||||||
|
const { DateTime } = require('luxon')
|
||||||
|
const { gte } = require('semver')
|
||||||
|
|
||||||
|
-// ----------------------------------------
|
||||||
|
-// Check Node.js version
|
||||||
|
-// ----------------------------------------
|
||||||
|
-if (gte(process.version, '18.0.0')) {
|
||||||
|
- console.error('You\'re using an unsupported Node.js version. Please read the requirements.')
|
||||||
|
- process.exit(1)
|
||||||
|
-}
|
||||||
|
-
|
||||||
|
// ----------------------------------------
|
||||||
|
// Init WIKI instance
|
||||||
|
// ----------------------------------------
|
Loading…
Reference in a new issue