deepin.dtk6log: init at 0.0.1

This commit is contained in:
rewine
2024-08-15 08:57:02 +08:00
parent 57c831e792
commit e735ee346f
2 changed files with 52 additions and 0 deletions
+1
View File
@@ -28,6 +28,7 @@ let
dtk6widget = callPackage ./library/dtk6widget { };
dtk6declarative = callPackage ./library/dtk6declarative { };
dtk6systemsettings = callPackage ./library/dtk6systemsettings { };
dtk6log = callPackage ./library/dtk6log { };
qt6platform-plugins = callPackage ./library/qt6platform-plugins { };
qt6integration = callPackage ./library/qt6integration { };
@@ -0,0 +1,51 @@
{
stdenv,
lib,
fetchFromGitHub,
cmake,
pkg-config,
qt6Packages,
spdlog,
systemd,
withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dtk6log";
version = "0.0.1";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = "dtk6log";
rev = finalAttrs.version;
hash = "sha256-R+jxlS8/FXUxnnzIDIePU2NwwNQU624n++E3q3oElco=";
};
nativeBuildInputs = [
cmake
pkg-config
qt6Packages.wrapQtAppsHook
];
dontWrapQtApps = true;
buildInputs = [
qt6Packages.qtbase
spdlog
] ++ lib.optional withSystemd systemd;
cmakeFlags = [
(lib.cmakeBool "BUILD_WITH_QT6" true)
(lib.cmakeBool "BUILD_WITH_SYSTEMD" withSystemd)
(lib.cmakeFeature "CMAKE_INSTALL_LIBDIR" "lib")
(lib.cmakeFeature "CMAKE_INSTALL_INCLUDEDIR" "include")
];
meta = {
description = "Simple, convinient and thread safe logger for Qt-based C++ apps";
homepage = "https://github.com/linuxdeepin/dtk6log";
license = lib.licenses.lgpl21Plus;
platforms = lib.platforms.linux;
maintainers = lib.teams.deepin.members;
};
})