about summary refs log tree commit diff
path: root/overlays/patches/nixpkgs-wayland/pkgs/wlay/default.nix
blob: 10499971866f14d91a907f41235754eefaf7fff6 (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
{ stdenv, fetchFromGitHub
, cmake, extra-cmake-modules, pkgconfig
, wayland, wayland-protocols
, epoxy, libpthreadstubs
, libGL, glfw3
, libX11, libXau, libXdmcp, libXrandr, libXext, libXinerama
, libXcursor, libXfixes
}:

let
  metadata = import ./metadata.nix;
in
stdenv.mkDerivation rec {
  pname = "wlay";
  version = metadata.rev;

  src = fetchFromGitHub {
    owner = "atx";
    repo = "wlay";
    fetchSubmodules = true;
    rev = version;
    sha256 = metadata.sha256;
  };

  nativeBuildInputs = [ pkgconfig cmake extra-cmake-modules ];
  buildInputs = [
    wayland wayland-protocols
    epoxy libpthreadstubs
    libGL glfw3
    libX11 libXau libXdmcp libXrandr libXext libXinerama
    libXcursor libXfixes
  ];

  enableParallelBuilding = true;

  meta = with stdenv.lib; {
    description = "Graphical output management for Wayland";
    homepage    = "https://github.com/atx/wlay";
    license     = licenses.mit;
    platforms   = platforms.linux;
    maintainers = with maintainers; [ colemickens ];
  };
}