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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

93 lines
2.1 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, libGL
, libX11
, libevdev
, libinput
, libxkbcommon
, pixman
, pkg-config
, scdoc
, udev
, wayland
, wayland-protocols
2023-01-02 16:23:02 +00:00
, wlroots_0_16
, xwayland
, zig_0_10
2023-07-15 05:24:36 +00:00
, withManpages ? true
2022-02-05 20:21:34 +00:00
, xwaylandSupport ? true
}:
stdenv.mkDerivation (finalAttrs: {
pname = "river";
2023-02-10 18:16:35 +00:00
version = "0.2.4";
2023-07-15 05:24:36 +00:00
outputs = [ "out" ] ++ lib.optionals withManpages [ "man" ];
src = fetchFromGitHub {
2022-01-21 18:59:22 +00:00
owner = "riverwm";
repo = "river";
rev = "refs/tags/v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-cIcO6owM6eYn+obYVaBOVQpnBx4++KOqQk5Hzo3GcNs=";
};
nativeBuildInputs = [
pkg-config
wayland
xwayland
zig_0_10.hook
2023-07-15 05:24:36 +00:00
]
++ lib.optional withManpages scdoc;
buildInputs = [
libGL
libevdev
libinput
libxkbcommon
pixman
udev
wayland-protocols
wlroots_0_16
] ++ lib.optional xwaylandSupport libX11;
dontConfigure = true;
2023-07-15 05:24:36 +00:00
zigBuildFlags = lib.optional withManpages "-Dman-pages"
++ lib.optional xwaylandSupport "-Dxwayland";
postInstall = ''
2022-11-28 16:19:15 +00:00
install contrib/river.desktop -Dt $out/share/wayland-sessions
'';
passthru.providedSessions = [ "river" ];
2021-05-01 16:18:33 +00:00
meta = {
2021-05-01 16:18:33 +00:00
homepage = "https://github.com/ifreund/river";
description = "A dynamic tiling wayland compositor";
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
2023-11-17 10:03:27 +00:00
moni
rodrgz
];
2023-09-01 15:43:28 +00:00
mainProgram = "river";
platforms = lib.platforms.linux;
};
})