blob: 64713d08b11f7256fc4b7e6602771024dceb5084 (
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
64
65
66
67
68
69
70
71
|
{ stdenv
, lib
, fetchFromGitHub
, dtkwidget
, qt5integration
, qt5platform-plugins
, cmake
, wrapQtAppsHook
, qtbase
, qttools
, doxygen
}:
stdenv.mkDerivation rec {
pname = "dde-app-services";
version = "1.0.25";
src = fetchFromGitHub {
owner = "linuxdeepin";
repo = pname;
rev = version;
hash = "sha256-/lHiSUOTD8nC0WDLAHAFzm1YC0WjSS5W5JNC0cjeVEo=";
};
postPatch = ''
substituteInPlace dconfig-center/dde-dconfig-daemon/services/org.desktopspec.ConfigManager.service \
--replace "/usr/bin/dde-dconfig-daemon" "$out/bin/dde-dconfig-daemon"
substituteInPlace dconfig-center/dde-dconfig/main.cpp \
--replace "/bin/dde-dconfig-editor" "dde-dconfig-editor"
substituteInPlace dconfig-center/CMakeLists.txt \
--replace 'add_subdirectory("example")' " " \
--replace 'add_subdirectory("tests")' " "
substituteInPlace dconfig-center/dde-dconfig-daemon/services/dde-dconfig-daemon.service \
--replace "/usr/bin" "$out/bin" \
--replace "/usr/share" "/run/current-system/sw/share"
'';
nativeBuildInputs = [
cmake
qttools
doxygen
wrapQtAppsHook
];
buildInputs = [
dtkwidget
qt5integration
qt5platform-plugins
];
cmakeFlags = [
"-DDVERSION=${version}"
"-DDSG_DATA_DIR=/run/current-system/sw/share/dsg"
"-DQCH_INSTALL_DESTINATION=${placeholder "out"}/${qtbase.qtDocPrefix}"
];
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=${qtbase.bin}/${qtbase.qtPluginPrefix}
'';
meta = with lib; {
description = "Provids dbus service for reading and writing DSG configuration";
homepage = "https://github.com/linuxdeepin/dde-app-services";
license = licenses.lgpl3Plus;
platforms = platforms.linux;
maintainers = teams.deepin.members;
};
}
|