biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / networking / cjdns / system-libsodium.patch
blob8b7b535b6a217c83e675a9514b5d14bed8362a6b
1 diff --git a/node_build/make.js b/node_build/make.js
2 index 1d0b0fa..b640f31 100644
3 --- a/node_build/make.js
4 +++ b/node_build/make.js
5 @@ -254,21 +254,8 @@ Builder.configure({
7 }).nThen(function (waitFor) {
9 - const dir = `${builder.config.buildDir}/../..`;
10 - Fs.readdir(dir, waitFor((err, ret) => {
11 - if (err) { throw err; }
12 - ret.forEach((f) => {
13 - if (!/^libsodium-sys-/.test(f)) { return; }
14 - const inclPath = `${dir}/${f}/out/source/libsodium/src/libsodium/include`;
15 - Fs.readdir(inclPath, waitFor((err, ret) => {
16 - if (foundSodium) { return; }
17 - if (err && err.code === 'ENOENT') { return; }
18 - if (err) { throw err; }
19 - builder.config.includeDirs.push(inclPath);
20 - foundSodium = true;
21 - }));
22 - });
23 - }));
24 + builder.config.includeDirs.push("@libsodium_include_dir@");
25 + foundSodium = true;
27 }).nThen(function (waitFor) {