2021-05-01 16:18:33 +00:00
|
|
|
{ lib, stdenv ,fetchFromGitHub
|
|
|
|
, zig, wayland, pkg-config, scdoc
|
|
|
|
, xwayland, wayland-protocols, wlroots
|
|
|
|
, libxkbcommon, pixman, udev, libevdev, libX11, libGL
|
2021-04-14 02:33:36 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-04-14 05:30:03 +00:00
|
|
|
pname = "river";
|
2021-04-29 20:01:54 +00:00
|
|
|
version = "unstable-2021-04-27";
|
2021-04-14 02:33:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ifreund";
|
2021-04-29 20:01:54 +00:00
|
|
|
repo = pname;
|
|
|
|
rev = "0c8e718d95a6a621b9cba0caa9158915e567b076";
|
2021-05-01 16:18:33 +00:00
|
|
|
sha256 = "1jjh0dzxi7hy4mg8vag6ipfwb9qxm5lfc07njp1mx6m81nq76ybk";
|
2021-04-14 02:33:36 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-05-01 16:18:33 +00:00
|
|
|
buildInputs = [ xwayland wayland-protocols wlroots pixman
|
|
|
|
libxkbcommon pixman udev libevdev libX11 libGL
|
2021-04-14 02:33:36 +00:00
|
|
|
];
|
|
|
|
|
2021-05-01 16:18:33 +00:00
|
|
|
preBuild = ''
|
2021-04-14 05:30:03 +00:00
|
|
|
export HOME=$TMPDIR
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
2021-05-01 16:18:33 +00:00
|
|
|
zig build -Drelease-safe -Dxwayland -Dman-pages --prefix $out install
|
2021-04-29 20:01:54 +00:00
|
|
|
'';
|
2021-04-14 02:33:36 +00:00
|
|
|
|
2021-05-01 16:18:33 +00:00
|
|
|
nativeBuildInputs = [ zig wayland scdoc pkg-config ];
|
|
|
|
|
|
|
|
installFlags = [ "DESTDIR=$(out)" ];
|
|
|
|
|
2021-04-14 02:33:36 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A dynamic tiling wayland compositor";
|
|
|
|
longDescription = ''
|
2021-05-01 16:18:33 +00:00
|
|
|
river is a dynamic tiling wayland compositor that takes inspiration from dwm and bspwm.
|
2021-04-14 02:33:36 +00:00
|
|
|
'';
|
2021-05-01 16:18:33 +00:00
|
|
|
homepage = "https://github.com/ifreund/river";
|
2021-04-14 02:33:36 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
2021-05-01 16:18:33 +00:00
|
|
|
maintainers = with maintainers; [ branwright1 ];
|
2021-04-14 02:33:36 +00:00
|
|
|
};
|
|
|
|
}
|