blob: d9f400ce979fba189be0b4e334cade4d589b7440 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, cmake
, pkg-config
, doxygen
, qt6Packages
, dtk6core
, libxcrypt
}:
stdenv.mkDerivation rec {
pname = "dtk6systemsettings";
version = "6.0.2";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
hash = "sha256-b/iI2OKQQoFj3vWatfGdDP9z+SEsK5XBra9KqjlGzqs=";
};
nativeBuildInputs = [
cmake
pkg-config
doxygen
qt6Packages.qttools
];
dontWrapQtApps = true;
buildInputs = [
qt6Packages.qtbase
dtk6core
libxcrypt
];
cmakeFlags = [
"-DDTK_VERSION=${version}"
"-DBUILD_DOCS=ON"
"-DBUILD_EXAMPLES=OFF"
"-DQCH_INSTALL_DESTINATION=${placeholder "doc"}/share/doc"
"-DMKSPECS_INSTALL_DIR=${placeholder "out"}/mkspecs/modules"
"-DDTK_INCLUDE_INSTALL_DIR=${placeholder "dev"}/include/dtk/DSystemSettings"
];
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" ];
meta = {
description = "Qt-based development library for system settings";
homepage = "https://github.com/linuxdeepin/dtk6systemsettings";
license = lib.licenses.lgpl3Plus;
platforms = lib.platforms.linux;
maintainers = lib.teams.deepin.members;
};
}
|