about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/window-managers/labwc/default.nix
blob: 9d39bd537fdee7f2db64279b8210c61478a4cd31 (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
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, meson
, ninja
, cairo
, glib
, libinput
, libxml2
, pandoc
, pango
, wayland
, wayland-protocols
, wlroots
, libxcb
, libxkbcommon
, xwayland
}:

stdenv.mkDerivation rec {
  pname = "labwc";
  version = "unstable-2021-02-06";

  src = fetchFromGitHub {
    owner = "johanmalm";
    repo = pname;
    rev = "4a8fcf5c6d0b730b1e2e17e544ce7d7d3c72cd13";
    sha256 = "g1ba8dchUN393eis0VAu1bIjQfthDGLaSijSavz4lfU=";
  };

  nativeBuildInputs = [ pkg-config meson ninja pandoc ];
  buildInputs = [
    cairo
    glib
    libinput
    libxml2
    pango
    wayland
    wayland-protocols
    wlroots
    libxcb
    libxkbcommon
    xwayland
  ];

  mesonFlags = [ "-Dxwayland=enabled" ];

  meta = with lib; {
    homepage = "https://github.com/johanmalm/labwc";
    description = "Openbox alternative for Wayland";
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ AndersonTorres ];
    platforms = platforms.unix;
  };
}