nixpkgs/pkgs/applications/misc/rivercarro/default.nix

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

58 lines
1.5 KiB
Nix
Raw Normal View History

2022-01-13 22:07:48 +00:00
{ lib
, stdenv
2024-06-15 19:56:26 +01:00
, callPackage
2022-01-13 22:07:48 +00:00
, fetchFromSourcehut
, pkg-config
2022-01-13 22:07:48 +00:00
, river
, wayland
, wayland-protocols
, wayland-scanner
2024-06-15 19:56:26 +01:00
, zig_0_12
2022-01-13 22:07:48 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
2022-01-13 22:07:48 +00:00
pname = "rivercarro";
2024-06-15 19:56:26 +01:00
version = "0.4.0";
2022-01-13 22:07:48 +00:00
src = fetchFromSourcehut {
owner = "~novakane";
repo = "rivercarro";
rev = "v${finalAttrs.version}";
2022-01-13 22:07:48 +00:00
fetchSubmodules = true;
2024-06-15 19:56:26 +01:00
hash = "sha256-nDKPv/roweW7ynEROsipUJPvs6VMmz3E4JzEFRBzE6s=";
2022-01-13 22:07:48 +00:00
};
nativeBuildInputs = [
pkg-config
river
wayland
wayland-protocols
wayland-scanner
2024-06-15 19:56:26 +01:00
zig_0_12.hook
2022-01-13 22:07:48 +00:00
];
2024-06-15 19:56:26 +01:00
postPatch = ''
ln -s ${callPackage ./deps.nix { }} $ZIG_GLOBAL_CACHE_DIR/p
'';
2022-01-13 22:07:48 +00:00
meta = with lib; {
homepage = "https://git.sr.ht/~novakane/rivercarro";
description = "Layout generator for river Wayland compositor, fork of rivertile";
longDescription = ''
A slightly modified version of rivertile layout generator for river.
Compared to rivertile, rivercarro adds:
- Monocle layout, views will takes all the usable area on the screen.
- Gaps instead of padding around views or layout area.
- Modify gaps size at runtime.
- Smart gaps, if there is only one view, gaps will be disable.
- Limit the width of the usable area of the screen.
'';
changelog = "https://git.sr.ht/~novakane/rivercarro/refs/v${finalAttrs.version}";
2022-01-13 22:07:48 +00:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ kraem ];
2024-06-15 19:56:26 +01:00
inherit (zig_0_12.meta) platforms;
2024-02-11 02:19:15 +00:00
mainProgram = "rivercarro";
2022-01-13 22:07:48 +00:00
};
})