mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
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>
22 lines
532 B
Nix
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\" \"$@\"")
|
|
]
|
|
)
|