mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
29 lines
1.0 KiB
Diff
29 lines
1.0 KiB
Diff
diff --git a/node_build/make.js b/node_build/make.js
|
|
index 1d0b0fa..b640f31 100644
|
|
--- a/node_build/make.js
|
|
+++ b/node_build/make.js
|
|
@@ -254,21 +254,8 @@ Builder.configure({
|
|
|
|
}).nThen(function (waitFor) {
|
|
|
|
- const dir = `${builder.config.buildDir}/../..`;
|
|
- Fs.readdir(dir, waitFor((err, ret) => {
|
|
- if (err) { throw err; }
|
|
- ret.forEach((f) => {
|
|
- if (!/^libsodium-sys-/.test(f)) { return; }
|
|
- const inclPath = `${dir}/${f}/out/source/libsodium/src/libsodium/include`;
|
|
- Fs.readdir(inclPath, waitFor((err, ret) => {
|
|
- if (foundSodium) { return; }
|
|
- if (err && err.code === 'ENOENT') { return; }
|
|
- if (err) { throw err; }
|
|
- builder.config.includeDirs.push(inclPath);
|
|
- foundSodium = true;
|
|
- }));
|
|
- });
|
|
- }));
|
|
+ builder.config.includeDirs.push("@libsodium_include_dir@");
|
|
+ foundSodium = true;
|
|
|
|
}).nThen(function (waitFor) {
|
|
|