2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2023-08-10 07:59:29 +00:00
|
|
|
, libGL
|
|
|
|
, libX11
|
|
|
|
, libevdev
|
|
|
|
, libinput
|
|
|
|
, libxkbcommon
|
|
|
|
, pixman
|
2021-05-20 23:08:51 +00:00
|
|
|
, pkg-config
|
|
|
|
, scdoc
|
2023-08-10 07:59:29 +00:00
|
|
|
, udev
|
|
|
|
, wayland
|
2021-05-20 23:08:51 +00:00
|
|
|
, wayland-protocols
|
2023-01-11 07:51:40 +00:00
|
|
|
, wlroots_0_16
|
2023-08-10 07:59:29 +00:00
|
|
|
, xwayland
|
2024-01-02 11:29:13 +00:00
|
|
|
, zig_0_11
|
2023-08-10 07:59:29 +00:00
|
|
|
, withManpages ? true
|
2022-02-10 20:34:41 +00:00
|
|
|
, xwaylandSupport ? true
|
2021-04-15 00:37:46 +00:00
|
|
|
}:
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-04-15 00:37:46 +00:00
|
|
|
pname = "river";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "0.2.6";
|
2021-04-15 00:37:46 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
outputs = [ "out" ] ++ lib.optionals withManpages [ "man" ];
|
|
|
|
|
2021-04-15 00:37:46 +00:00
|
|
|
src = fetchFromGitHub {
|
2022-01-26 04:04:25 +00:00
|
|
|
owner = "riverwm";
|
2023-08-10 07:59:29 +00:00
|
|
|
repo = "river";
|
|
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
2021-04-15 00:37:46 +00:00
|
|
|
fetchSubmodules = true;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-JPb8l5ANxYCqinWNoQK5PAyn4CaiSj0e9mAhZwd9HOw=";
|
2021-04-15 00:37:46 +00:00
|
|
|
};
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
wayland
|
|
|
|
xwayland
|
2024-01-02 11:29:13 +00:00
|
|
|
zig_0_11.hook
|
2023-08-10 07:59:29 +00:00
|
|
|
]
|
|
|
|
++ lib.optional withManpages scdoc;
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2023-08-10 07:59:29 +00:00
|
|
|
libGL
|
|
|
|
libevdev
|
|
|
|
libinput
|
2021-05-20 23:08:51 +00:00
|
|
|
libxkbcommon
|
|
|
|
pixman
|
|
|
|
udev
|
2023-08-10 07:59:29 +00:00
|
|
|
wayland-protocols
|
|
|
|
wlroots_0_16
|
2022-02-10 20:34:41 +00:00
|
|
|
] ++ lib.optional xwaylandSupport libX11;
|
2021-04-15 00:37:46 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
dontConfigure = true;
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
zigBuildFlags = lib.optional withManpages "-Dman-pages"
|
|
|
|
++ lib.optional xwaylandSupport "-Dxwayland";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
postInstall = ''
|
2022-12-02 08:20:57 +00:00
|
|
|
install contrib/river.desktop -Dt $out/share/wayland-sessions
|
2021-05-03 20:48:10 +00:00
|
|
|
'';
|
2021-04-15 00:37:46 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
passthru.providedSessions = [ "river" ];
|
2021-04-15 00:37:46 +00:00
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
meta = {
|
2021-04-15 00:37:46 +00:00
|
|
|
homepage = "https://github.com/ifreund/river";
|
2021-05-20 23:08:51 +00:00
|
|
|
description = "A dynamic tiling wayland compositor";
|
2023-08-10 07:59:29 +00:00
|
|
|
longDescription = ''
|
|
|
|
River is a dynamic tiling Wayland compositor with flexible runtime
|
|
|
|
configuration.
|
|
|
|
|
|
|
|
Its design goals are:
|
|
|
|
- Simple and predictable behavior, river should be easy to use and have a
|
|
|
|
low cognitive load.
|
|
|
|
- Window management based on a stack of views and tags.
|
|
|
|
- Dynamic layouts generated by external, user-written executables. A
|
|
|
|
default rivertile layout generator is provided.
|
|
|
|
- Scriptable configuration and control through a custom Wayland protocol
|
|
|
|
and separate riverctl binary implementing it.
|
|
|
|
'';
|
|
|
|
changelog = "https://github.com/ifreund/river/releases/tag/v${finalAttrs.version}";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [
|
|
|
|
adamcstephens
|
2024-01-02 11:29:13 +00:00
|
|
|
moni
|
2023-08-10 07:59:29 +00:00
|
|
|
rodrgz
|
|
|
|
];
|
2023-10-09 19:29:22 +00:00
|
|
|
mainProgram = "river";
|
2023-08-10 07:59:29 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2021-04-15 00:37:46 +00:00
|
|
|
};
|
2023-08-10 07:59:29 +00:00
|
|
|
})
|