about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/wayland/waylogout/default.nix
blob: 6bf3b89eea4099c0565eb381b73de9635b0874c3 (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
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, wayland
, wayland-protocols
, libxkbcommon
, cairo
, gdk-pixbuf
, scdoc
}:

stdenv.mkDerivation {
  pname = "waylogout";
  version = "unstable-2023-06-09";

  src = fetchFromGitHub {
    owner = "loserMcloser";
    repo = "waylogout";
    rev = "f90e1b8b0f67a2694fafca7beb32828493f3f78e";
    hash = "sha256-YQtX4t6q2NybuKU3lVcn5XhC0nXcPfEbcXbuFmDZOrw=";
  };

  nativeBuildInputs = [
    pkg-config
    meson
    ninja
    scdoc
  ];

  buildInputs = [
    wayland
    wayland-protocols
    libxkbcommon
    cairo
    gdk-pixbuf
  ];

  meta = with lib; {
    description = "A graphical logout/suspend/reboot/shutdown dialog for wayland";
    homepage = "https://github.com/loserMcloser/waylogout";
    license = licenses.mit;
    maintainers = with maintainers; [ dit7ya ];
    platforms = platforms.linux;
    mainProgram = "waylogout";
  };
}