summary refs log tree commit diff
path: root/pkgs/development/web/nodejs/nodejs.nix
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-03-15 15:32:10 -0400
committerGitHub <noreply@github.com>2019-03-15 15:32:10 -0400
commitd3dd0875edb72f20b87470d13f30acf7e5e3b9b8 (patch)
treeb32aa5b9e05f8675d7eddcdc5182c825a969c19a /pkgs/development/web/nodejs/nodejs.nix
parent6d52e26818884b0a5735e93ddc17aca18eedd51f (diff)
parent2fff57a416f7cb4b4d0dbe9175cccb1422d38d2a (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.nix6
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