Skip to content

Commit

Permalink
nodejs-18_x: fix completion generation
Browse files Browse the repository at this point in the history
Since Node.js 18.0.0 the completion generation requires the environment
variable HOME to be set.
  • Loading branch information
marsam committed May 4, 2022
1 parent 70f212b commit c0bb20e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/web/nodejs/nodejs.nix
Expand Up @@ -136,7 +136,7 @@ let
${optionalString (enableNpm && stdenv.hostPlatform == stdenv.buildPlatform) ''
mkdir -p $out/share/bash-completion/completions/
$out/bin/npm completion > $out/share/bash-completion/completions/npm || :
HOME=$TMPDIR $out/bin/npm completion > $out/share/bash-completion/completions/npm
for dir in "$out/lib/node_modules/npm/man/"*; do
mkdir -p $out/share/man/$(basename "$dir")
for page in "$dir"/*; do
Expand Down

0 comments on commit c0bb20e

Please sign in to comment.