tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
deepin.dtk6gui: init at 6.0.15
rewine
2 years ago
bdc7fd3c
4ee96b38
+109
-1
4 changed files
expand all
collapse all
unified
split
pkgs
desktops
deepin
default.nix
library
dtk6gui
default.nix
fix-pkgconfig-path.patch
fix-pri-path.patch
+2
-1
pkgs/desktops/deepin/default.nix
···
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 { };
···
24
image-editor = callPackage ./library/image-editor { };
25
udisks2-qt5 = callPackage ./library/udisks2-qt5 { };
26
util-dfm = callPackage ./library/util-dfm { };
0
0
27
28
#### CORE
29
deepin-kwin = callPackage ./core/deepin-kwin { };
···
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 { };
···
23
image-editor = callPackage ./library/image-editor { };
24
udisks2-qt5 = callPackage ./library/udisks2-qt5 { };
25
util-dfm = callPackage ./library/util-dfm { };
26
+
dtk6core = callPackage ./library/dtk6core { };
27
+
dtk6gui = callPackage ./library/dtk6gui { };
28
29
#### CORE
30
deepin-kwin = callPackage ./core/deepin-kwin { };
+74
pkgs/desktops/deepin/library/dtk6gui/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
···
1
+
{ stdenv
2
+
, lib
3
+
, fetchFromGitHub
4
+
, cmake
5
+
, pkg-config
6
+
, doxygen
7
+
, qt6Packages
8
+
, dtk6core
9
+
, librsvg
10
+
}:
11
+
12
+
stdenv.mkDerivation (finalAttrs: {
13
+
pname = "dtk6gui";
14
+
version = "6.0.15";
15
+
16
+
src = fetchFromGitHub {
17
+
owner = "linuxdeepin";
18
+
repo = "dtk6gui";
19
+
rev = finalAttrs.version;
20
+
hash = "sha256-B/A3VXPCon+NIUhO+IVGoojACVjut2h0nH5pLdJYufw=";
21
+
};
22
+
23
+
patches = [
24
+
./fix-pkgconfig-path.patch
25
+
./fix-pri-path.patch
26
+
];
27
+
28
+
nativeBuildInputs = [
29
+
cmake
30
+
pkg-config
31
+
doxygen
32
+
qt6Packages.qttools
33
+
qt6Packages.wrapQtAppsHook
34
+
];
35
+
36
+
buildInputs = [
37
+
qt6Packages.qtbase
38
+
librsvg
39
+
];
40
+
41
+
propagatedBuildInputs = [
42
+
dtk6core
43
+
qt6Packages.qtimageformats
44
+
];
45
+
46
+
cmakeFlags = [
47
+
"-DDTK_VERSION=${finalAttrs.version}"
48
+
"-DBUILD_DOCS=ON"
49
+
"-DMKSPECS_INSTALL_DIR=${placeholder "out"}/mkspecs/modules"
50
+
"-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/share/doc"
51
+
];
52
+
53
+
preConfigure = ''
54
+
# qt.qpa.plugin: Could not find the Qt platform plugin "minimal"
55
+
# A workaround is to set QT_PLUGIN_PATH explicitly
56
+
export QT_PLUGIN_PATH=${lib.getBin qt6Packages.qtbase}/${qt6Packages.qtbase.qtPluginPrefix}
57
+
'';
58
+
59
+
outputs = [ "out" "dev" "doc" ];
60
+
61
+
postFixup = ''
62
+
for binary in $out/libexec/dtk6/DGui/bin/*; do
63
+
wrapQtApp $binary
64
+
done
65
+
'';
66
+
67
+
meta = {
68
+
description = "Deepin Toolkit, gui module for DDE look and feel";
69
+
homepage = "https://github.com/linuxdeepin/dtk6gui";
70
+
license = lib.licenses.lgpl3Plus;
71
+
platforms = lib.platforms.linux;
72
+
maintainers = lib.teams.deepin.members;
73
+
};
74
+
})
+16
pkgs/desktops/deepin/library/dtk6gui/fix-pkgconfig-path.patch
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
diff --git a/misc/dtkgui.pc.in b/misc/dtkgui.pc.in
2
+
index 89fdbbf..ad817c4 100644
3
+
--- a/misc/dtkgui.pc.in
4
+
+++ b/misc/dtkgui.pc.in
5
+
@@ -1,8 +1,8 @@
6
+
prefix=@CMAKE_INSTALL_PREFIX@
7
+
exec_prefix=${prefix}
8
+
-libdir=${prefix}/@LIBRARY_INSTALL_DIR@
9
+
-includedir=${prefix}/@INCLUDE_INSTALL_DIR@
10
+
-tooldir=${prefix}/@PACKAGE_TOOL_INSTALL_DIR@
11
+
+libdir=@LIBRARY_INSTALL_DIR@
12
+
+includedir=@INCLUDE_INSTALL_DIR@
13
+
+tooldir=@PACKAGE_TOOL_INSTALL_DIR@
14
+
15
+
Name: dtk@DTK_VERSION_MAJOR@gui
16
+
Description: Deepin Tool Kit dtkgui header files
+17
pkgs/desktops/deepin/library/dtk6gui/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_dtkgui.pri.in b/misc/qt_lib_dtkgui.pri.in
2
+
index 28308ee..9fb25e6 100644
3
+
--- a/misc/qt_lib_dtkgui.pri.in
4
+
+++ b/misc/qt_lib_dtkgui.pri.in
5
+
@@ -4,9 +4,9 @@ QT.dtkgui.MINOR_VERSION = @PROJECT_VERSION_MINOR@
6
+
QT.dtkgui.PATCH_VERSION = @PROJECT_VERSION_PATCH@
7
+
QT.dtkgui.name = dtkgui
8
+
QT.dtkgui.module = dtk@DTK_VERSION_MAJOR@gui
9
+
-QT.dtkgui.tools = @CMAKE_INSTALL_PREFIX@/@TOOL_INSTALL_DIR@
10
+
-QT.dtkgui.libs = @CMAKE_INSTALL_PREFIX@/@LIBRARY_INSTALL_DIR@
11
+
-QT.dtkgui.includes = @CMAKE_INSTALL_PREFIX@/@INCLUDE_INSTALL_DIR@
12
+
+QT.dtkgui.tools = @TOOL_INSTALL_DIR@
13
+
+QT.dtkgui.libs = @LIBRARY_INSTALL_DIR@
14
+
+QT.dtkgui.includes = @INCLUDE_INSTALL_DIR@
15
+
QT.dtkgui.frameworks =
16
+
QT.dtkgui.depends = core gui dtkcore gui_private dbus network
17
+
QT.dtkgui.module_config = v2 internal_module ltcg