1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 kwindowsystem,
7 liblxqt,
8 libqtxdg,
9 lxqt-build-tools,
10 qtbase,
11 qtsvg,
12 qttools,
13 qtwayland,
14 sudo,
15 wrapQtAppsHook,
16 gitUpdater,
17}:
18
19stdenv.mkDerivation rec {
20 pname = "lxqt-sudo";
21 version = "2.2.0";
22
23 src = fetchFromGitHub {
24 owner = "lxqt";
25 repo = pname;
26 rev = version;
27 hash = "sha256-H2uprArYfiX1KyoWx3RRHkLcA0z9LKGDeghD+085VC4=";
28 };
29
30 nativeBuildInputs = [
31 cmake
32 lxqt-build-tools
33 qttools
34 wrapQtAppsHook
35 ];
36
37 buildInputs = [
38 kwindowsystem
39 liblxqt
40 libqtxdg
41 qtbase
42 qtsvg
43 qtwayland
44 sudo
45 ];
46
47 passthru.updateScript = gitUpdater { };
48
49 meta = with lib; {
50 homepage = "https://github.com/lxqt/lxqt-sudo";
51 description = "GUI frontend for sudo/su";
52 license = licenses.lgpl21Plus;
53 platforms = platforms.linux;
54 teams = [ teams.lxqt ];
55 };
56}