From 8a1409432e0991f931ceb13e890817ee810b783e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Wed, 29 May 2013 21:42:12 +0200 Subject: [PATCH] sourcery-codebench: fix installation of manpages Sourcery CodeBench manpages are installed under share/doc//man/. Add symlinks so that the manpages become available to "man". NOTE: I use symlinks instead of moving the manpages, because I think it is best to do as little as possible to prebuilt packages. --- pkgs/development/compilers/mentor/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/compilers/mentor/default.nix b/pkgs/development/compilers/mentor/default.nix index e053599e5dd..b12a197451a 100644 --- a/pkgs/development/compilers/mentor/default.nix +++ b/pkgs/development/compilers/mentor/default.nix @@ -37,6 +37,11 @@ let *gdb) patchelf --set-rpath "${ncurses}/lib" "$file";; esac done + + # Manpages + mkdir -p "$out/share/man" + ln -s "$out"/share/doc/*/man/man1 "$out/share/man/man1" + ln -s "$out"/share/doc/*/man/man7 "$out/share/man/man7" ''; meta = with stdenv.lib; {