about summary refs log tree commit diff
path: root/nixpkgs/pkgs/desktops/plasma-5/3rdparty/addons/caffeine-plus.nix
blob: 1a18e1a89de16664bdd1ff22503e5966a2728127 (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
{ lib
, mkDerivation
, fetchFromGitHub
, extra-cmake-modules
, kwindowsystem
, plasma-framework
}:

mkDerivation rec {
  pname = "plasma-applet-caffeine-plus";
  version = "1.4";

  src = fetchFromGitHub {
    owner = "qunxyz";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-/Nz0kSDGok7GjqSQtjH/8q/u6blVTFPO6kfjEyt/jEo=";
  };

  buildInputs = [
    kwindowsystem
    plasma-framework
  ];

  nativeBuildInputs = [ extra-cmake-modules ];

  cmakeFlags = [
    "-Wno-dev"
  ];

  meta = with lib; {
    description = "Disable screensaver and auto suspend";
    license = licenses.gpl2;
    maintainers = with maintainers; [ peterhoeg ];
    inherit (src.meta) homepage;
    inherit (kwindowsystem.meta) platforms;
  };
}