Merge pull request #212979 from wineee/gio-qt

authored by Artturi and committed by GitHub c114d0cf 356e59e4

+15 -6
+15 -6
pkgs/desktops/deepin/library/gio-qt/default.nix
··· 6 , wrapQtAppsHook 7 , glibmm 8 , doxygen 9 - , buildDocs ? false 10 }: 11 12 stdenv.mkDerivation rec { ··· 20 sha256 = "sha256-dlY1CTlXywgGZUonBBe3cDwx8h2xXrPY6Ft/D59nlug="; 21 }; 22 23 - nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ]; 24 25 cmakeFlags = [ 26 "-DCMAKE_INSTALL_LIBDIR=lib" 27 "-DPROJECT_VERSION=${version}" 28 - ] 29 - ++ lib.optional (!buildDocs) [ "-DBUILD_DOCS=OFF" ]; 30 31 - buildInputs = lib.optional buildDocs doxygen; 32 33 - propagatedBuildInputs = [ glibmm ]; 34 35 meta = with lib; { 36 description = "Gio wrapper for Qt applications";
··· 6 , wrapQtAppsHook 7 , glibmm 8 , doxygen 9 + , qttools 10 + , qtbase 11 + , buildDocs ? true 12 }: 13 14 stdenv.mkDerivation rec { ··· 22 sha256 = "sha256-dlY1CTlXywgGZUonBBe3cDwx8h2xXrPY6Ft/D59nlug="; 23 }; 24 25 + nativeBuildInputs = [ 26 + cmake 27 + pkg-config 28 + wrapQtAppsHook 29 + ] ++ lib.optional buildDocs [ doxygen qttools.dev ]; 30 31 cmakeFlags = [ 32 "-DCMAKE_INSTALL_LIBDIR=lib" 33 "-DPROJECT_VERSION=${version}" 34 + ] ++ lib.optional (!buildDocs) [ "-DBUILD_DOCS=OFF" ]; 35 36 + propagatedBuildInputs = [ glibmm ]; 37 38 + preConfigure = '' 39 + # qt.qpa.plugin: Could not find the Qt platform plugin "minimal" 40 + # A workaround is to set QT_PLUGIN_PATH explicitly 41 + export QT_PLUGIN_PATH=${qtbase.bin}/${qtbase.qtPluginPrefix} 42 + ''; 43 44 meta = with lib; { 45 description = "Gio wrapper for Qt applications";