1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00
nixpkgs/pkgs/by-name/ri/river/package.nix

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

104 lines
2.3 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, callPackage
, fetchFromGitea
, libGL
, libX11
, libevdev
, libinput
, libxkbcommon
, pixman
, pkg-config
, scdoc
, udev
, wayland
, wayland-protocols
, wayland-scanner
, wlroots_0_18
, xwayland
2024-06-16 09:36:56 +01:00
, zig_0_13
2023-07-15 06:24:36 +01:00
, withManpages ? true
2022-02-05 20:21:34 +00:00
, xwaylandSupport ? true
}:
stdenv.mkDerivation (finalAttrs: {
pname = "river";
version = "0.3.5";
2023-07-15 06:24:36 +01:00
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-NUKjQOT6UgNYCebeHMxOhX08r3493IOL3qHZivEcbAg=";
};
deps = callPackage ./build.zig.zon.nix { };
nativeBuildInputs = [
pkg-config
wayland-scanner
xwayland
2024-06-16 09:36:56 +01:00
zig_0_13.hook
2023-07-15 06:24:36 +01:00
]
++ lib.optional withManpages scdoc;
buildInputs = [
libGL
libevdev
libinput
libxkbcommon
pixman
udev
wayland
wayland-protocols
wlroots_0_18
] ++ lib.optional xwaylandSupport libX11;
dontConfigure = true;
zigBuildFlags = [
"--system"
"${finalAttrs.deps}"
] ++ 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" ];
updateScript = ./update.nu;
};
2021-05-01 17:18:33 +01:00
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
2023-11-17 10:03:27 +00:00
moni
rodrgz
];
2023-09-01 16:43:28 +01:00
mainProgram = "river";
platforms = lib.platforms.linux;
};
})