deepin.gio-qt: enable build docs

This commit is contained in:
rewine 2023-01-27 23:44:49 +08:00
parent f923b636c1
commit 903afe066d

View File

@ -6,7 +6,9 @@
, wrapQtAppsHook , wrapQtAppsHook
, glibmm , glibmm
, doxygen , doxygen
, buildDocs ? false , qttools
, qtbase
, buildDocs ? true
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -20,18 +22,25 @@ stdenv.mkDerivation rec {
sha256 = "sha256-dlY1CTlXywgGZUonBBe3cDwx8h2xXrPY6Ft/D59nlug="; sha256 = "sha256-dlY1CTlXywgGZUonBBe3cDwx8h2xXrPY6Ft/D59nlug=";
}; };
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ]; nativeBuildInputs = [
cmake
pkg-config
wrapQtAppsHook
] ++ lib.optional buildDocs [ doxygen qttools.dev ];
cmakeFlags = [ cmakeFlags = [
"-DCMAKE_INSTALL_LIBDIR=lib" "-DCMAKE_INSTALL_LIBDIR=lib"
"-DPROJECT_VERSION=${version}" "-DPROJECT_VERSION=${version}"
] ] ++ lib.optional (!buildDocs) [ "-DBUILD_DOCS=OFF" ];
++ lib.optional (!buildDocs) [ "-DBUILD_DOCS=OFF" ];
buildInputs = lib.optional buildDocs doxygen;
propagatedBuildInputs = [ glibmm ]; propagatedBuildInputs = [ glibmm ];
preConfigure = ''
# qt.qpa.plugin: Could not find the Qt platform plugin "minimal"
# A workaround is to set QT_PLUGIN_PATH explicitly
export QT_PLUGIN_PATH=${qtbase.bin}/${qtbase.qtPluginPrefix}
'';
meta = with lib; { meta = with lib; {
description = "Gio wrapper for Qt applications"; description = "Gio wrapper for Qt applications";
homepage = "https://github.com/linuxdeepin/gio-qt"; homepage = "https://github.com/linuxdeepin/gio-qt";