summary refs log tree commit diff
path: root/pkgs/tools/wayland/chayang/default.nix
blob: 30780ed90a8b0f34f67795002a9ecf1ef044b650 (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
{ lib
, stdenv
, fetchFromSourcehut
, meson
, ninja
, pkg-config
, wayland-scanner
, wayland-protocols
, wayland
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "chayang";
  version = "0.1.0";

  src = fetchFromSourcehut {
    owner = "~emersion";
    repo = "chayang";
    rev = "v${finalAttrs.version}";
    hash = "sha256-3Vu9/Bu2WQe2Yx/2BK25pEpuPNwX6g3qoFUMznCFHeI=";
  };

  strictDeps = true;

  depsBuildBuild = [
    pkg-config
  ];

  nativeBuildInputs = [
    meson
    ninja
    pkg-config
    wayland-scanner
  ];

  buildInputs = [
    wayland-protocols
    wayland
  ];

  meta = with lib; {
    description = "Gradually dim the screen on Wayland";
    homepage = "https://git.sr.ht/~emersion/chayang/";
    license = licenses.mit;
    longDescription = ''
      Gradually dim the screen on Wayland.
      Can be used to implement a grace period before locking the session.
    '';
    maintainers = with maintainers; [ mxkrsv ];
    platforms = platforms.linux;
  };
})