nixpkgs/pkgs/applications/window-managers/river/default.nix

49 lines
1.3 KiB
Nix
Raw Normal View History

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
}:
stdenv.mkDerivation rec {
pname = "river";
version = "unstable-2021-05-07";
src = fetchFromGitHub {
owner = "ifreund";
repo = pname;
rev = "7ffa2f4b9e7abf7d152134f555373c2b63ccfc1d";
sha256 = "1z5qjid73lfn654f2k74nwgvpr88fpdfpbzhihybx9cyy1mqfz7j";
fetchSubmodules = true;
};
buildInputs = [ wayland-protocols wlroots pixman
2021-05-01 16:18:33 +00:00
libxkbcommon pixman udev libevdev libX11 libGL
];
dontConfigure = true;
2021-05-01 16:18:33 +00:00
preBuild = ''
export HOME=$TMPDIR
'';
installPhase = ''
runHook preInstall
2021-05-01 16:18:33 +00:00
zig build -Drelease-safe -Dxwayland -Dman-pages --prefix $out install
runHook postInstall
'';
nativeBuildInputs = [ zig wayland xwayland scdoc pkg-config ];
2021-05-01 16:18:33 +00:00
# Builder patch install dir into river to get default config
# When installFlags is removed, river becomes half broken
# see https://github.com/ifreund/river/blob/7ffa2f4b9e7abf7d152134f555373c2b63ccfc1d/river/main.zig#L56
2021-05-01 16:18:33 +00:00
installFlags = [ "DESTDIR=$(out)" ];
meta = with lib; {
2021-05-01 16:18:33 +00:00
homepage = "https://github.com/ifreund/river";
description = "A dynamic tiling wayland compositor";
license = licenses.gpl3Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ ];
};
}