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