diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2019-03-15 15:32:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-15 15:32:10 -0400 |
commit | d3dd0875edb72f20b87470d13f30acf7e5e3b9b8 (patch) | |
tree | b32aa5b9e05f8675d7eddcdc5182c825a969c19a /pkgs/development/web/nodejs/nodejs.nix | |
parent | 6d52e26818884b0a5735e93ddc17aca18eedd51f (diff) | |
parent | 2fff57a416f7cb4b4d0dbe9175cccb1422d38d2a (diff) |
Merge pull request #56226 from marsam/nodejs-install-npm-manpages
nodejs: Install npm manpages
Diffstat (limited to 'pkgs/development/web/nodejs/nodejs.nix')
-rw-r--r-- | pkgs/development/web/nodejs/nodejs.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/web/nodejs/nodejs.nix b/pkgs/development/web/nodejs/nodejs.nix index 6aaa8db7db181..7364789d505a9 100644 --- a/pkgs/development/web/nodejs/nodejs.nix +++ b/pkgs/development/web/nodejs/nodejs.nix @@ -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 |