splice.nix: improve performance with early cut-off
[NixPkgs.git] / pkgs / desktops / lxqt / lxqt-admin / default.nix
blobe83b1788dc3a96774d2e79da7ab27b9a4ab2f1b1
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , cmake
5 , kwindowsystem
6 , liblxqt
7 , libqtxdg
8 , lxqt-build-tools
9 , polkit-qt-1
10 , qtsvg
11 , qttools
12 , qtwayland
13 , wrapQtAppsHook
14 , gitUpdater
17 stdenv.mkDerivation rec {
18   pname = "lxqt-admin";
19   version = "2.0.0";
21   src = fetchFromGitHub {
22     owner = "lxqt";
23     repo = pname;
24     rev = version;
25     hash = "sha256-Ps+XiCA6OmnsYj0D+pxpvRxfIZfRGFBbZ0t/IPZjlv8=";
26   };
28   nativeBuildInputs = [
29     cmake
30     lxqt-build-tools
31     qttools
32     wrapQtAppsHook
33   ];
35   buildInputs = [
36     kwindowsystem
37     liblxqt
38     libqtxdg
39     polkit-qt-1
40     qtsvg
41     qtwayland
42   ];
44   postPatch = ''
45     for f in lxqt-admin-{time,user}/CMakeLists.txt; do
46       substituteInPlace $f --replace-fail \
47         "\''${POLKITQT-1_POLICY_FILES_INSTALL_DIR}" \
48         "$out/share/polkit-1/actions"
49     done
50   '';
52   passthru.updateScript = gitUpdater { };
54   meta = with lib; {
55     homepage = "https://github.com/lxqt/lxqt-admin";
56     description = "LXQt system administration tool";
57     license = licenses.lgpl21Plus;
58     platforms = platforms.linux;
59     maintainers = teams.lxqt.members;
60   };