mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
4fc5e5bcbf
Diff: https://codeberg.org/river/river/compare/v0.3.3...v0.3.4 Changelog: https://codeberg.org/river/river/releases/tag/v0.3.4
102 lines
2.3 KiB
Nix
102 lines
2.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, callPackage
|
|
, fetchFromGitea
|
|
, libGL
|
|
, libX11
|
|
, libevdev
|
|
, libinput
|
|
, libxkbcommon
|
|
, pixman
|
|
, pkg-config
|
|
, scdoc
|
|
, udev
|
|
, wayland
|
|
, wayland-protocols
|
|
, wlroots_0_17
|
|
, xwayland
|
|
, zig_0_13
|
|
, withManpages ? true
|
|
, xwaylandSupport ? true
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "river";
|
|
version = "0.3.4";
|
|
|
|
outputs = [ "out" ] ++ lib.optionals withManpages [ "man" ];
|
|
|
|
src = fetchFromGitea {
|
|
domain = "codeberg.org";
|
|
owner = "river";
|
|
repo = "river";
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
fetchSubmodules = true;
|
|
hash = "sha256-a8Xz9VZtwmyynYHL0vNDoWqZmvdRoBmNh2jcaIO72bE=";
|
|
};
|
|
|
|
deps = callPackage ./build.zig.zon.nix { };
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
wayland
|
|
xwayland
|
|
zig_0_13.hook
|
|
]
|
|
++ lib.optional withManpages scdoc;
|
|
|
|
buildInputs = [
|
|
libGL
|
|
libevdev
|
|
libinput
|
|
libxkbcommon
|
|
pixman
|
|
udev
|
|
wayland-protocols
|
|
wlroots_0_17
|
|
] ++ lib.optional xwaylandSupport libX11;
|
|
|
|
dontConfigure = true;
|
|
|
|
zigBuildFlags = [
|
|
"--system"
|
|
"${finalAttrs.deps}"
|
|
] ++ lib.optional withManpages "-Dman-pages" ++ lib.optional xwaylandSupport "-Dxwayland";
|
|
|
|
postInstall = ''
|
|
install contrib/river.desktop -Dt $out/share/wayland-sessions
|
|
'';
|
|
|
|
passthru = {
|
|
providedSessions = [ "river" ];
|
|
updateScript = ./update.nu;
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://codeberg.org/river/river";
|
|
description = "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://codeberg.org/river/river/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.gpl3Plus;
|
|
maintainers = with lib.maintainers; [
|
|
adamcstephens
|
|
moni
|
|
rodrgz
|
|
];
|
|
mainProgram = "river";
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|