summary refs log tree commit diff
path: root/pkgs/tools/wayland/wlay/default.nix
blob: a766a49d25d9ee7ed215012fe7475cd3a2f06471 (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
{ lib
, stdenv
, fetchFromGitHub
, cmake
, extra-cmake-modules
, glfw3
, libX11
, libXau
, libXdmcp
, libepoxy
, libffi
, libxcb
, pkg-config
, wayland
, wayland-scanner
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "wlay";
  version = "unstable-2022-01-26";

  src = fetchFromGitHub {
    owner = "atx";
    repo = "wlay";
    rev = "ed316060ac3ac122c0d3d8918293e19dfe9a6c90";
    hash = "sha256-Lu+EyoDHiXK9QzD4jdwbllCOCl2aEU+uK6/KxC2AUGQ=";
    fetchSubmodules = true;
  };

  nativeBuildInputs = [
    cmake
    pkg-config
    wayland-scanner
  ];

  buildInputs = [
    extra-cmake-modules
    glfw3
    libX11
    libXau
    libXdmcp
    libepoxy
    libffi
    libxcb
    wayland
  ];

  strictDeps = true;

  meta = {
    homepage = "https://github.com/atx/wlay";
    description = "Graphical output management for Wayland";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ AndersonTorres ];
    inherit (wayland.meta) platforms;
  };
})