buildNodePacakge: Create man page symlinks when needed
Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
7b11eac353
commit
483755e9ab
@ -45,6 +45,10 @@ stdenv.mkDerivation ({
|
|||||||
find -L $out/node_modules/.bin/* -type f -print0 | \
|
find -L $out/node_modules/.bin/* -type f -print0 | \
|
||||||
xargs -0 sed --follow-symlinks -i 's@#!/usr/bin/env node@#!${nodejs}/bin/node@'
|
xargs -0 sed --follow-symlinks -i 's@#!/usr/bin/env node@#!${nodejs}/bin/node@'
|
||||||
fi
|
fi
|
||||||
|
if [ -e "$out/node_modules/${requireName}/man" ]; then
|
||||||
|
mkdir $out/share
|
||||||
|
ln -sv node_modules/${requireName}/man $out/share/man
|
||||||
|
fi
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user