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"