diff options
author | Shea Levy <shea@shealevy.com> | 2013-07-14 14:07:39 -0400 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2013-07-14 14:07:39 -0400 |
commit | 483755e9abaa581256d04ce902f014d033caf9de (patch) | |
tree | f2ee642e0e1dbc5cc2000197a07e95c92c7699e5 /pkgs/development/web | |
parent | 7b11eac353eda5ddd0ab6447dec807a7c55d7b16 (diff) | |
download | nixlib-483755e9abaa581256d04ce902f014d033caf9de.tar nixlib-483755e9abaa581256d04ce902f014d033caf9de.tar.gz nixlib-483755e9abaa581256d04ce902f014d033caf9de.tar.bz2 nixlib-483755e9abaa581256d04ce902f014d033caf9de.tar.lz nixlib-483755e9abaa581256d04ce902f014d033caf9de.tar.xz nixlib-483755e9abaa581256d04ce902f014d033caf9de.tar.zst nixlib-483755e9abaa581256d04ce902f014d033caf9de.zip |
buildNodePacakge: Create man page symlinks when needed
Signed-off-by: Shea Levy <shea@shealevy.com>
Diffstat (limited to 'pkgs/development/web')
-rw-r--r-- | pkgs/development/web/nodejs/build-node-package.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/web/nodejs/build-node-package.nix b/pkgs/development/web/nodejs/build-node-package.nix index 8a56e3e798b9..1e6d5cc6bcac 100644 --- a/pkgs/development/web/nodejs/build-node-package.nix +++ b/pkgs/development/web/nodejs/build-node-package.nix @@ -45,6 +45,10 @@ stdenv.mkDerivation ({ find -L $out/node_modules/.bin/* -type f -print0 | \ xargs -0 sed --follow-symlinks -i 's@#!/usr/bin/env node@#!${nodejs}/bin/node@' fi + if [ -e "$out/node_modules/${requireName}/man" ]; then + mkdir $out/share + ln -sv node_modules/${requireName}/man $out/share/man + fi runHook postInstall ''; |