Merge pull request #56226 from marsam/nodejs-install-npm-manpages

nodejs: Install npm manpages
This commit is contained in:
Matthew Bauer 2019-03-15 15:32:10 -04:00 committed by GitHub
commit d3dd0875ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,6 +97,12 @@ in
${optionalString enableNpm ''
mkdir -p $out/share/bash-completion/completions/
$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
ln -rs $page $out/share/man/$(basename "$dir")
done
done
''}
# install the missing headers for node-gyp