about summary refs log tree commit diff
path: root/pkgs/tools/wayland/wlopm/default.nix
blob: aa0b9ae4bcfc19ed4fdc2278b1481d3923cdda58 (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
{ lib, stdenv, fetchFromSourcehut, wayland, wayland-scanner }:

stdenv.mkDerivation rec {
  pname = "wlopm";
  version = "0.1.0";

  src = fetchFromSourcehut {
    owner = "~leon_plickat";
    repo = "wlopm";
    rev = "v${version}";
    sha256 = "sha256-kcUJVB5jP2qZ1YgJDEBsyn5AgwhRxQmzOrk0gKj1MeM=";
  };

  strictDeps = true;
  nativeBuildInputs = [ wayland-scanner ];
  buildInputs = [ wayland ];

  installFlags = [ "PREFIX=$(out)" ];

  meta = with lib; {
    description = "Simple client implementing zwlr-output-power-management-v1";
    homepage = "https://git.sr.ht/~leon_plickat/wlopm";
    mainProgram = "wlopm";
    license = licenses.gpl3Only;
    maintainers = with maintainers; [ arjan-s ];
    platforms = platforms.linux;
  };
}