summaryrefslogtreecommitdiff
path: root/pkgs/hikari.nix
blob: e096b5a42d299a458e7d7e3406b55ddc3af26d4b (plain)
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
59
{ lib, stdenv, fetchgit
, pkg-config
, cairo, glib, libevdev, libinput, libxkbcommon, linux-pam, pango, pixman
, libucl, wayland, wayland-protocols, wayland-scanner, wlroots, mesa
, libdrm, libgbm, ninja, libxcb-wm, meson
, features ? {
    gammacontrol = true;
    layershell   = true;
    screencopy   = true;
    xwayland     = true;
  }
}:

stdenv.mkDerivation rec {
  pname = "hikari";
  version = "3.0.0";

  src = fetchgit {
    url = "https://codeberg.org/thomasadam/hikari";
    rev = version;
    hash = "sha256-gcD0VYIqGoArvRcDpS0BYGDwuxVJZYQpuvv0is6dozM=";
  };

  nativeBuildInputs = [ pkg-config meson ninja ];

  buildInputs = [
    cairo
    glib
    libevdev
    libinput
    libxkbcommon
    libxcb-wm
    libdrm
    libgbm
    linux-pam
    pango
    pixman
    libucl
    mesa # for libEGL
    wayland
    wayland-protocols
    wayland-scanner
    wlroots
  ];

  enableParallelBuilding = true;

  postPatch = ''
    sed -i 's@<drm_fourcc.h>@<libdrm/drm_fourcc.h>@' src/*.c
  '';

  meta = with lib; {
    description = "package definition kept around since it was removed in nixpkgs";
    homepage    = "https://hikari.acmelabs.space";
    license     = licenses.bsd2;
    platforms   = platforms.linux ++ platforms.freebsd;
    maintainers = with maintainers; [ jpotier ];
  };
}