Skip to content

Commit ade4fc2

Browse files
committed
tools: copyedit Nix files
PR-URL: #61447 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]>
1 parent df02d00 commit ade4fc2

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

shell.nix

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
loadJSBuiltinsDynamically ? true, # Load `lib/**.js` from disk instead of embedding
77
ninja ? pkgs.ninja,
88
extraConfigFlags ? [
9-
"--without-npm"
109
"--debug-node"
1110
],
1211

@@ -87,13 +86,9 @@ pkgs.mkShell {
8786
++ pkgs.lib.optional (ninja != null) "--ninja"
8887
++ pkgs.lib.optional loadJSBuiltinsDynamically "--node-builtin-modules-path=${builtins.toString ./.}"
8988
++ pkgs.lib.concatMap (name: [
90-
"--shared-${builtins.replaceStrings [ "c-ares" ] [ "cares" ] name}"
91-
"--shared-${builtins.replaceStrings [ "c-ares" ] [ "cares" ] name}-libpath=${
92-
pkgs.lib.getLib sharedLibDeps.${name}
93-
}/lib"
94-
"--shared-${builtins.replaceStrings [ "c-ares" ] [ "cares" ] name}-include=${
95-
pkgs.lib.getInclude sharedLibDeps.${name}
96-
}/include"
89+
"--shared-${name}"
90+
"--shared-${name}-libpath=${pkgs.lib.getLib sharedLibDeps.${name}}/lib"
91+
"--shared-${name}-include=${pkgs.lib.getInclude sharedLibDeps.${name}}/include"
9792
]) (builtins.attrNames sharedLibDeps)
9893
);
9994
NOSQLITE = pkgs.lib.optionalString (!withSQLite) "1";

tools/nix/sharedLibDeps.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
inherit (pkgs)
99
ada
1010
brotli
11-
c-ares
1211
gtest
1312
libuv
1413
nghttp2
@@ -20,6 +19,7 @@
2019
zlib
2120
zstd
2221
;
22+
cares = pkgs.c-ares;
2323
hdr-histogram = pkgs.hdrhistogram_c;
2424
http-parser = pkgs.llhttp;
2525
}

0 commit comments

Comments
 (0)