Merge pull request #212979 from wineee/gio-qt
This commit is contained in:
commit
c114d0cf8c
|
@ -6,7 +6,9 @@
|
|||
, wrapQtAppsHook
|
||||
, glibmm
|
||||
, doxygen
|
||||
, buildDocs ? false
|
||||
, qttools
|
||||
, qtbase
|
||||
, buildDocs ? true
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -20,18 +22,25 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "sha256-dlY1CTlXywgGZUonBBe3cDwx8h2xXrPY6Ft/D59nlug=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
wrapQtAppsHook
|
||||
] ++ lib.optional buildDocs [ doxygen qttools.dev ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DCMAKE_INSTALL_LIBDIR=lib"
|
||||
"-DPROJECT_VERSION=${version}"
|
||||
]
|
||||
++ lib.optional (!buildDocs) [ "-DBUILD_DOCS=OFF" ];
|
||||
|
||||
buildInputs = lib.optional buildDocs doxygen;
|
||||
] ++ lib.optional (!buildDocs) [ "-DBUILD_DOCS=OFF" ];
|
||||
|
||||
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; {
|
||||
description = "Gio wrapper for Qt applications";
|
||||
homepage = "https://github.com/linuxdeepin/gio-qt";
|
||||
|
|
Loading…
Reference in a new issue