Files
node/tools/nix/devTools.nix
Antoine du Hamel c94047dfda tools: extract Nix dependency lists to separate files
This should improve the readability, as well as the UX of cherry-picking
what dependency the user wants in their env.

PR-URL: https://github.com/nodejs/node/pull/60495
Reviewed-By: Jacob Smith <jacob@frende.me>
2025-11-08 12:53:47 +00:00

22 lines
532 B
Nix

{
pkgs ? import ./pkgs.nix { },
ncu-path ? null, # Provide this if you want to use a local version of NCU
}:
[
pkgs.curl
pkgs.gh
pkgs.git
pkgs.jq
pkgs.shellcheck
]
++ (
if (ncu-path == null) then
[ pkgs.node-core-utils ]
else
[
(pkgs.writeShellScriptBin "git-node" "exec \"${ncu-path}/bin/git-node.js\" \"$@\"")
(pkgs.writeShellScriptBin "ncu-ci" "exec \"${ncu-path}/bin/ncu-ci.js\" \"$@\"")
(pkgs.writeShellScriptBin "ncu-config" "exec \"${ncu-path}/bin/ncu-config.js\" \"$@\"")
]
)