nodejs-18_x: fix completion generation

Since Node.js 18.0.0 the completion generation requires the environment
variable HOME to be set.
main
Mario Rodas 2 years ago
parent 70f212bb5b
commit c0bb20e08e
  1. 2
      pkgs/development/web/nodejs/nodejs.nix

@ -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

Loading…
Cancel
Save