/
default.nix
92 lines (81 loc) · 2.13 KB
/
default.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{ lib
, stdenv
, fetchFromGitHub
, libGL
, libX11
, libevdev
, libinput
, libxkbcommon
, pixman
, pkg-config
, scdoc
, udev
, wayland
, wayland-protocols
, wlroots_0_16
, xwayland
, zig_0_11
, withManpages ? true
, xwaylandSupport ? true
}:
stdenv.mkDerivation (finalAttrs: {
pname = "river";
version = "0.2.6";
outputs = [ "out" ] ++ lib.optionals withManpages [ "man" ];
src = fetchFromGitHub {
owner = "riverwm";
repo = "river";
rev = "refs/tags/v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-JPb8l5ANxYCqinWNoQK5PAyn4CaiSj0e9mAhZwd9HOw=";
};
nativeBuildInputs = [
pkg-config
wayland
xwayland
zig_0_11.hook
]
++ lib.optional withManpages scdoc;
buildInputs = [
libGL
libevdev
libinput
libxkbcommon
pixman
udev
wayland-protocols
wlroots_0_16
] ++ lib.optional xwaylandSupport libX11;
dontConfigure = true;
zigBuildFlags = lib.optional withManpages "-Dman-pages"
++ lib.optional xwaylandSupport "-Dxwayland";
postInstall = ''
install contrib/river.desktop -Dt $out/share/wayland-sessions
'';
passthru.providedSessions = [ "river" ];
meta = {
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
moni
rodrgz
];
mainProgram = "river";
platforms = lib.platforms.linux;
};
})