1{
2 stdenv,
3 lib,
4 fetchFromGitHub,
5 dtkwidget,
6 qt5integration,
7 qt5platform-plugins,
8 dde-qt-dbus-factory,
9 pkg-config,
10 cmake,
11 libsForQt5,
12}:
13
14stdenv.mkDerivation rec {
15 pname = "dde-polkit-agent";
16 version = "6.0.7";
17
18 src = fetchFromGitHub {
19 owner = "linuxdeepin";
20 repo = pname;
21 rev = version;
22 hash = "sha256-r2WVyy1lqcBJIQnRsPWlBFWQtSeZkq98J1S4dkipCys=";
23 };
24
25 nativeBuildInputs = [
26 cmake
27 pkg-config
28 libsForQt5.qttools
29 libsForQt5.wrapQtAppsHook
30 ];
31
32 buildInputs = [
33 dtkwidget
34 qt5integration
35 qt5platform-plugins
36 dde-qt-dbus-factory
37 libsForQt5.polkit-qt
38 ];
39
40 postFixup = ''
41 wrapQtApp $out/lib/polkit-1-dde/dde-polkit-agent
42 '';
43
44 meta = with lib; {
45 description = "PolicyKit agent for Deepin Desktop Environment";
46 homepage = "https://github.com/linuxdeepin/dde-polkit-agent";
47 license = licenses.gpl3Plus;
48 platforms = platforms.linux;
49 teams = [ teams.deepin ];
50 };
51}