3
0
Fork 0
forked from mirrors/nixpkgs

password-store: link ext. man pages into the password-store $out

When pass was installed with extensions in the system environment, the
man pages for the selected extensions were not available globally
because they were only available in a buildInput of the password-store
derivation.

This commit resolves the problem by linking the man pages from the
extensions environment into the output directory of the password-store
derivation.

Bug 56850
This commit is contained in:
Keith Amidon 2019-03-23 12:51:10 -07:00
parent 4446452347
commit 9830436567

View file

@ -73,6 +73,9 @@ let
# Link extensions env # Link extensions env
rmdir $out/lib/password-store/extensions rmdir $out/lib/password-store/extensions
ln -s ${extensionsEnv}/lib/password-store/extensions $out/lib/password-store/. ln -s ${extensionsEnv}/lib/password-store/extensions $out/lib/password-store/.
for f in ${extensionsEnv}/share/man/man1/*.1.gz; do
ln -s $f $out/share/man/man1/
done
# Fix program name in --help # Fix program name in --help
substituteInPlace $out/bin/pass \ substituteInPlace $out/bin/pass \