1 { lib, stdenv, fetchzip
3 , cairo, glib, libevdev, libinput, libxkbcommon, linux-pam, pango, pixman
4 , libucl, wayland, wayland-protocols, wlroots, mesa
13 stdenv.mkDerivation rec {
18 url = "https://hikari.acmelabs.space/releases/${pname}-${version}.tar.gz";
19 sha256 = "sha256-5Ug0U3ESC5F/gj7bahnLYkeY/weSCj0QASwdFuWwdMI=";
22 nativeBuildInputs = [ pkg-config bmake ];
40 enableParallelBuilding = true;
42 makeFlags = with lib; [ "PREFIX=$(out)" ]
43 ++ optional stdenv.isLinux "WITH_POSIX_C_SOURCE=YES"
44 ++ mapAttrsToList (feat: enabled:
45 optionalString enabled "WITH_${toUpper feat}=YES"
49 # Can't suid in nix store
50 # Run hikari as root (it will drop privileges as early as possible), or create
51 # a systemd unit to give it the necessary permissions/capabilities.
52 substituteInPlace Makefile --replace '4555' '555'
54 sed -i 's@<drm_fourcc.h>@<libdrm/drm_fourcc.h>@' src/*.c
58 description = "Stacking Wayland compositor which is actively developed on FreeBSD but also supports Linux";
59 homepage = "https://hikari.acmelabs.space";
60 license = licenses.bsd2;
61 platforms = platforms.linux ++ platforms.freebsd;
62 maintainers = with maintainers; [ jpotier ];