2023-02-02 18:25:31 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, pkg-config
|
|
|
|
, wrapQtAppsHook
|
|
|
|
, glibmm
|
|
|
|
, doxygen
|
|
|
|
, qttools
|
|
|
|
, qtbase
|
|
|
|
, buildDocs ? true
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gio-qt";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "0.0.12";
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "linuxdeepin";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-04-12 12:48:02 +00:00
|
|
|
sha256 = "sha256-/wLaVR31T+EcT6D5Cw0QIjZasioPWC74KNmt1tckwXk=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
pkg-config
|
|
|
|
wrapQtAppsHook
|
2023-03-15 16:39:30 +00:00
|
|
|
] ++ lib.optionals buildDocs [ doxygen qttools.dev ];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_INSTALL_LIBDIR=lib"
|
|
|
|
"-DPROJECT_VERSION=${version}"
|
2023-03-15 16:39:30 +00:00
|
|
|
] ++ lib.optionals (!buildDocs) [ "-DBUILD_DOCS=OFF" ];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = teams.deepin.members;
|
|
|
|
};
|
|
|
|
}
|