tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
deepin.dtk6core: init at 6.0.15
rewine
2 years ago
4ee96b38
3645b258
+116
4 changed files
expand all
collapse all
unified
split
pkgs
desktops
deepin
default.nix
library
dtk6core
default.nix
fix-pkgconfig-path.patch
fix-pri-path.patch
+1
pkgs/desktops/deepin/default.nix
···
7
#### LIBRARIES
8
dtkcommon = callPackage ./library/dtkcommon { };
9
dtkcore = callPackage ./library/dtkcore { };
0
10
dtkgui = callPackage ./library/dtkgui { };
11
dtkwidget = callPackage ./library/dtkwidget { };
12
dtkdeclarative = callPackage ./library/dtkdeclarative { };
···
7
#### LIBRARIES
8
dtkcommon = callPackage ./library/dtkcommon { };
9
dtkcore = callPackage ./library/dtkcore { };
10
+
dtk6core = callPackage ./library/dtk6core { };
11
dtkgui = callPackage ./library/dtkgui { };
12
dtkwidget = callPackage ./library/dtkwidget { };
13
dtkdeclarative = callPackage ./library/dtkdeclarative { };
+84
pkgs/desktops/deepin/library/dtk6core/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ stdenv
2
+
, lib
3
+
, fetchFromGitHub
4
+
, cmake
5
+
, pkg-config
6
+
, doxygen
7
+
, qt6Packages
8
+
, lshw
9
+
, libuchardet
10
+
, spdlog
11
+
, dtkcommon
12
+
, systemd
13
+
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
14
+
}:
15
+
16
+
stdenv.mkDerivation (finalAttrs: {
17
+
pname = "dtk6core";
18
+
version = "6.0.15";
19
+
20
+
src = fetchFromGitHub {
21
+
owner = "linuxdeepin";
22
+
repo = "dtk6core";
23
+
rev = finalAttrs.version;
24
+
hash = "sha256-zUJFilafR0hNH/Owmuyh6BLBFPbBuFKcHv40fena0GM=";
25
+
};
26
+
27
+
patches = [
28
+
./fix-pkgconfig-path.patch
29
+
./fix-pri-path.patch
30
+
];
31
+
32
+
nativeBuildInputs = [
33
+
cmake
34
+
pkg-config
35
+
doxygen
36
+
qt6Packages.qttools
37
+
qt6Packages.wrapQtAppsHook
38
+
];
39
+
40
+
dontWrapQtApps = true;
41
+
42
+
buildInputs = [
43
+
qt6Packages.qtbase
44
+
lshw
45
+
libuchardet
46
+
spdlog
47
+
]
48
+
++ lib.optional withSystemd systemd;
49
+
50
+
propagatedBuildInputs = [ dtkcommon ];
51
+
52
+
cmakeFlags = [
53
+
"-DDTK_VERSION=${finalAttrs.version}"
54
+
"-DBUILD_DOCS=ON"
55
+
"-DBUILD_EXAMPLES=OFF"
56
+
"-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/share/doc"
57
+
"-DDSG_PREFIX_PATH='/run/current-system/sw'"
58
+
"-DMKSPECS_INSTALL_DIR=${placeholder "out"}/mkspecs/modules"
59
+
"-DD_DSG_APP_DATA_FALLBACK=/var/dsg/appdata"
60
+
"-DBUILD_WITH_SYSTEMD=${if withSystemd then "ON" else "OFF"}"
61
+
];
62
+
63
+
preConfigure = ''
64
+
# qt.qpa.plugin: Could not find the Qt platform plugin "minimal"
65
+
# A workaround is to set QT_PLUGIN_PATH explicitly
66
+
export QT_PLUGIN_PATH=${lib.getBin qt6Packages.qtbase}/${qt6Packages.qtbase.qtPluginPrefix}
67
+
'';
68
+
69
+
outputs = [ "out" "dev" "doc" ];
70
+
71
+
postFixup = ''
72
+
for binary in $out/libexec/dtk6/DCore/bin/*; do
73
+
wrapQtApp $binary
74
+
done
75
+
'';
76
+
77
+
meta = {
78
+
description = "Deepin tool kit core library";
79
+
homepage = "https://github.com/linuxdeepin/dtk6core";
80
+
license = lib.licenses.lgpl3Plus;
81
+
platforms = lib.platforms.linux;
82
+
maintainers = lib.teams.deepin.members;
83
+
};
84
+
})
+14
pkgs/desktops/deepin/library/dtk6core/fix-pkgconfig-path.patch
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
diff --git a/misc/dtkcore.pc.in b/misc/dtkcore.pc.in
2
+
index 83eecb7..da24ce8 100644
3
+
--- a/misc/dtkcore.pc.in
4
+
+++ b/misc/dtkcore.pc.in
5
+
@@ -1,7 +1,7 @@
6
+
prefix=@CMAKE_INSTALL_PREFIX@
7
+
exec_prefix=${prefix}
8
+
-libdir=${prefix}/@LIBRARY_INSTALL_DIR@
9
+
-includedir=${prefix}/@INCLUDE_INSTALL_DIR@
10
+
+libdir=@LIBRARY_INSTALL_DIR@
11
+
+includedir=@INCLUDE_INSTALL_DIR@
12
+
13
+
Name: dtk@DTK_VERSION_MAJOR@core
14
+
Description: Deepin Tool Kit dtkcore header files
+17
pkgs/desktops/deepin/library/dtk6core/fix-pri-path.patch
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
diff --git a/misc/qt_lib_dtkcore.pri.in b/misc/qt_lib_dtkcore.pri.in
2
+
index a331f52..ce01dc0 100644
3
+
--- a/misc/qt_lib_dtkcore.pri.in
4
+
+++ b/misc/qt_lib_dtkcore.pri.in
5
+
@@ -4,9 +4,9 @@ QT.dtkcore.MINOR_VERSION = @PROJECT_VERSION_MINOR@
6
+
QT.dtkcore.PATCH_VERSION = @PROJECT_VERSION_PATCH@
7
+
QT.dtkcore.name = dtkcore
8
+
QT.dtkcore.module = dtk@DTK_VERSION_MAJOR@core
9
+
-QT.dtkcore.tools = @CMAKE_INSTALL_PREFIX@/@TOOL_INSTALL_DIR@
10
+
-QT.dtkcore.libs = @CMAKE_INSTALL_PREFIX@/@LIBRARY_INSTALL_DIR@
11
+
-QT.dtkcore.includes = @CMAKE_INSTALL_PREFIX@/@INCLUDE_INSTALL_DIR@
12
+
+QT.dtkcore.tools = @TOOL_INSTALL_DIR@
13
+
+QT.dtkcore.libs = @LIBRARY_INSTALL_DIR@
14
+
+QT.dtkcore.includes = @INCLUDE_INSTALL_DIR@
15
+
QT.dtkcore.frameworks =
16
+
QT.dtkcore.depends = core dbus xml
17
+
QT.dtkcore.module_config = v2 ltcg