gio-qt: init at 0.0.11

This commit is contained in:
rewine 2023-01-07 17:13:35 +08:00 committed by rewine
parent f45d637b6a
commit e4352b39a9
2 changed files with 43 additions and 0 deletions

View file

@ -14,6 +14,7 @@ let
dde-qt-dbus-factory = callPackage ./library/dde-qt-dbus-factory { };
disomaster = callPackage ./library/disomaster { };
docparser = callPackage ./library/docparser { };
gio-qt = callPackage ./library/gio-qt { };
};
in
lib.makeScope libsForQt5.newScope packages

View file

@ -0,0 +1,42 @@
{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, wrapQtAppsHook
, glibmm
, doxygen
, buildDocs ? false
}:
stdenv.mkDerivation rec {
pname = "gio-qt";
version = "0.0.11";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
sha256 = "sha256-dlY1CTlXywgGZUonBBe3cDwx8h2xXrPY6Ft/D59nlug=";
};
nativeBuildInputs = [ cmake pkg-config wrapQtAppsHook ];
cmakeFlags = [
"-DCMAKE_INSTALL_LIBDIR=lib"
"-DPROJECT_VERSION=${version}"
]
++ lib.optional (!buildDocs) [ "-DBUILD_DOCS=OFF" ];
buildInputs = lib.optional buildDocs doxygen;
propagatedBuildInputs = [ glibmm ];
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;
};
}