From 4098e7937812e7dba3a0bc808959089af8b675e9 Mon Sep 17 00:00:00 2001 From: Thomas Tuegel Date: Sun, 23 Aug 2015 13:47:24 -0500 Subject: [PATCH] qt54: set documentation path in setupHook --- pkgs/development/libraries/qt-5/5.4/setup-hook.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/libraries/qt-5/5.4/setup-hook.sh b/pkgs/development/libraries/qt-5/5.4/setup-hook.sh index 6866e4c57bdd..b60e3e44800d 100644 --- a/pkgs/development/libraries/qt-5/5.4/setup-hook.sh +++ b/pkgs/development/libraries/qt-5/5.4/setup-hook.sh @@ -38,6 +38,13 @@ addQtModule() { QML2_IMPORT_PATH="$QML2_IMPORT_PATH${QML2_IMPORT_PATH:+:}$1/lib/qt5/qml"; fi fi + + if [[ -d "$1/share" ]]; then + @lndir@/bin/lndir -silent "$1/share" "$qtOut/share" + if [[ -n $qtSubmodule ]]; then + find "$1/share" -printf 'share/%P\n' >> "$qtOut/nix-support/qt-inputs" + fi + fi fi } @@ -61,6 +68,7 @@ Prefix = $qtOut Plugins = lib/qt5/plugins Imports = lib/qt5/imports Qml2Imports = lib/qt5/qml +Documentation = share/doc/qt5 EOF export QMAKE="$qtOut/bin/qmake"