about summary refs log tree commit diff
path: root/pkgs/applications/window-managers/wayfire/focus-request.nix
blob: 1e535e8ba751affb58b1c0de2bf81fe63a76cd87 (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
53
54
55
56
57
58
{ stdenv
, lib
, fetchFromGitLab
, meson
, ninja
, pkg-config
, wayfire
, wf-config
, wayland
, pango
, libinput
, libxkbcommon
, librsvg
, libGL
, xcbutilwm
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "focus-request";
  version = "0.8.0.2";

  src = fetchFromGitLab {
    owner = "wayfireplugins";
    repo = "focus-request";
    rev = "v${finalAttrs.version}";
    hash = "sha256-v0kGT+KrtfFJ/hp1Dr8izKVj6UHhuW6udHFjWt1y9TY=";
  };

  nativeBuildInputs = [
    meson
    ninja
    pkg-config
  ];

  buildInputs = [
    wayfire
    wf-config
    wayland
    pango
    libinput
    libxkbcommon
    librsvg
    libGL
    xcbutilwm
  ];

  env = {
    PKG_CONFIG_WAYFIRE_METADATADIR = "${placeholder "out"}/share/wayfire/metadata";
  };

  meta = {
    homepage = "https://gitlab.com/wayfireplugins/focus-request";
    description = "The wayfire plugin provides a mechanism to grant focus to views that make a focus self-request";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ rewine ];
    inherit (wayfire.meta) platforms;
  };
})