deepin.dtk6core: init at 6.0.15
This commit is contained in:
parent
3645b258dd
commit
4ee96b38dc
@ -7,6 +7,7 @@ let
|
||||
#### LIBRARIES
|
||||
dtkcommon = callPackage ./library/dtkcommon { };
|
||||
dtkcore = callPackage ./library/dtkcore { };
|
||||
dtk6core = callPackage ./library/dtk6core { };
|
||||
dtkgui = callPackage ./library/dtkgui { };
|
||||
dtkwidget = callPackage ./library/dtkwidget { };
|
||||
dtkdeclarative = callPackage ./library/dtkdeclarative { };
|
||||
|
84
pkgs/desktops/deepin/library/dtk6core/default.nix
Normal file
84
pkgs/desktops/deepin/library/dtk6core/default.nix
Normal file
@ -0,0 +1,84 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, pkg-config
|
||||
, doxygen
|
||||
, qt6Packages
|
||||
, lshw
|
||||
, libuchardet
|
||||
, spdlog
|
||||
, dtkcommon
|
||||
, systemd
|
||||
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "dtk6core";
|
||||
version = "6.0.15";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "linuxdeepin";
|
||||
repo = "dtk6core";
|
||||
rev = finalAttrs.version;
|
||||
hash = "sha256-zUJFilafR0hNH/Owmuyh6BLBFPbBuFKcHv40fena0GM=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./fix-pkgconfig-path.patch
|
||||
./fix-pri-path.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
doxygen
|
||||
qt6Packages.qttools
|
||||
qt6Packages.wrapQtAppsHook
|
||||
];
|
||||
|
||||
dontWrapQtApps = true;
|
||||
|
||||
buildInputs = [
|
||||
qt6Packages.qtbase
|
||||
lshw
|
||||
libuchardet
|
||||
spdlog
|
||||
]
|
||||
++ lib.optional withSystemd systemd;
|
||||
|
||||
propagatedBuildInputs = [ dtkcommon ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DDTK_VERSION=${finalAttrs.version}"
|
||||
"-DBUILD_DOCS=ON"
|
||||
"-DBUILD_EXAMPLES=OFF"
|
||||
"-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/share/doc"
|
||||
"-DDSG_PREFIX_PATH='/run/current-system/sw'"
|
||||
"-DMKSPECS_INSTALL_DIR=${placeholder "out"}/mkspecs/modules"
|
||||
"-DD_DSG_APP_DATA_FALLBACK=/var/dsg/appdata"
|
||||
"-DBUILD_WITH_SYSTEMD=${if withSystemd then "ON" else "OFF"}"
|
||||
];
|
||||
|
||||
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=${lib.getBin qt6Packages.qtbase}/${qt6Packages.qtbase.qtPluginPrefix}
|
||||
'';
|
||||
|
||||
outputs = [ "out" "dev" "doc" ];
|
||||
|
||||
postFixup = ''
|
||||
for binary in $out/libexec/dtk6/DCore/bin/*; do
|
||||
wrapQtApp $binary
|
||||
done
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Deepin tool kit core library";
|
||||
homepage = "https://github.com/linuxdeepin/dtk6core";
|
||||
license = lib.licenses.lgpl3Plus;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = lib.teams.deepin.members;
|
||||
};
|
||||
})
|
@ -0,0 +1,14 @@
|
||||
diff --git a/misc/dtkcore.pc.in b/misc/dtkcore.pc.in
|
||||
index 83eecb7..da24ce8 100644
|
||||
--- a/misc/dtkcore.pc.in
|
||||
+++ b/misc/dtkcore.pc.in
|
||||
@@ -1,7 +1,7 @@
|
||||
prefix=@CMAKE_INSTALL_PREFIX@
|
||||
exec_prefix=${prefix}
|
||||
-libdir=${prefix}/@LIBRARY_INSTALL_DIR@
|
||||
-includedir=${prefix}/@INCLUDE_INSTALL_DIR@
|
||||
+libdir=@LIBRARY_INSTALL_DIR@
|
||||
+includedir=@INCLUDE_INSTALL_DIR@
|
||||
|
||||
Name: dtk@DTK_VERSION_MAJOR@core
|
||||
Description: Deepin Tool Kit dtkcore header files
|
17
pkgs/desktops/deepin/library/dtk6core/fix-pri-path.patch
Normal file
17
pkgs/desktops/deepin/library/dtk6core/fix-pri-path.patch
Normal file
@ -0,0 +1,17 @@
|
||||
diff --git a/misc/qt_lib_dtkcore.pri.in b/misc/qt_lib_dtkcore.pri.in
|
||||
index a331f52..ce01dc0 100644
|
||||
--- a/misc/qt_lib_dtkcore.pri.in
|
||||
+++ b/misc/qt_lib_dtkcore.pri.in
|
||||
@@ -4,9 +4,9 @@ QT.dtkcore.MINOR_VERSION = @PROJECT_VERSION_MINOR@
|
||||
QT.dtkcore.PATCH_VERSION = @PROJECT_VERSION_PATCH@
|
||||
QT.dtkcore.name = dtkcore
|
||||
QT.dtkcore.module = dtk@DTK_VERSION_MAJOR@core
|
||||
-QT.dtkcore.tools = @CMAKE_INSTALL_PREFIX@/@TOOL_INSTALL_DIR@
|
||||
-QT.dtkcore.libs = @CMAKE_INSTALL_PREFIX@/@LIBRARY_INSTALL_DIR@
|
||||
-QT.dtkcore.includes = @CMAKE_INSTALL_PREFIX@/@INCLUDE_INSTALL_DIR@
|
||||
+QT.dtkcore.tools = @TOOL_INSTALL_DIR@
|
||||
+QT.dtkcore.libs = @LIBRARY_INSTALL_DIR@
|
||||
+QT.dtkcore.includes = @INCLUDE_INSTALL_DIR@
|
||||
QT.dtkcore.frameworks =
|
||||
QT.dtkcore.depends = core dbus xml
|
||||
QT.dtkcore.module_config = v2 ltcg
|
Loading…
Reference in New Issue
Block a user