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