From e9663c4d512d2337e6f7c575be4b02c96c257da9 Mon Sep 17 00:00:00 2001 From: Andrew Benbow Date: Mon, 19 Oct 2026 13:43:02 +1300 Subject: [PATCH 1/2] river-channel: init at 0.4.1 --- pkgs/by-name/ri/river-channel/package.nix | 65 +++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 pkgs/by-name/ri/river-channel/package.nix diff --git a/pkgs/by-name/ri/river-channel/package.nix b/pkgs/by-name/ri/river-channel/package.nix new file mode 100644 index 000000000000..5f162c689b8c --- /dev/null +++ b/pkgs/by-name/ri/river-channel/package.nix @@ -0,0 +1,65 @@ +{ + lib, + stdenv, + fetchFromGitea, + zig, + pkg-config, + wayland-scanner, + wayland-protocols, + wayland, + river, + libxkbcommon, + nix-update-script, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "river-channel"; + version = "0.4.1"; + __structuredAttrs = true; + strictDeps = true; + + src = fetchFromGitea { + domain = "codeberg.org"; + owner = "Sivecano"; + repo = "channel"; + tag = finalAttrs.version; + hash = "sha256-AIP5SO7p2Z8fYeLSoIliSya2fQALV1xkkYfIRdHY6TQ="; + }; + + nativeBuildInputs = [ + zig + pkg-config + ]; + + buildInputs = [ + # wayland-scanner must be placed in buildInputs in order for build to succeed + wayland-scanner + wayland-protocols + wayland + river + libxkbcommon + ]; + + zigDeps = zig.fetchDeps { + inherit (finalAttrs) src pname version; + hash = "sha256-RD/0GMhzh26P2Hxb/5ksLC4kvLNOG489ojbFwwscIr8="; + }; + + postConfigure = '' + ln -s ${finalAttrs.zigDeps} $ZIG_GLOBAL_CACHE_DIR/p + ''; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Input config for river"; + homepage = "https://codeberg.org/Sivecano/channel"; + changelog = "https://codeberg.org/Sivecano/channel/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.agpl3Only; + maintainers = with lib.maintainers; [ + OulipianSummer + atemu + ]; + mainProgram = "channel"; + }; +}) From feaaaaedcf3f0420a43976ec1b0670f1668213b2 Mon Sep 17 00:00:00 2001 From: Andrew Benbow Date: Fri, 23 Oct 2026 14:02:11 +1300 Subject: [PATCH 2/2] rhine: init at 0.4.1 --- pkgs/by-name/rh/rhine/package.nix | 83 +++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 pkgs/by-name/rh/rhine/package.nix diff --git a/pkgs/by-name/rh/rhine/package.nix b/pkgs/by-name/rh/rhine/package.nix new file mode 100644 index 000000000000..de9f0cf0631e --- /dev/null +++ b/pkgs/by-name/rh/rhine/package.nix @@ -0,0 +1,83 @@ +{ + dbus, + fetchFromCodeberg, + lib, + libxkbcommon, + nix-update-script, + pkg-config, + river, + river-channel, + stdenv, + wayland, + wayland-protocols, + wayland-scanner, + zig_0_16, + withStripDebug ? true, +}: + +let + inherit (lib.trivial) + boolToString + ; + zig = zig_0_16; +in +stdenv.mkDerivation (finalAttrs: { + pname = "rhine"; + version = "0.4.1"; + strictDeps = true; + __structuredAttrs = true; + + src = fetchFromCodeberg { + owner = "Sivecano"; + repo = "rhine"; + tag = finalAttrs.version; + hash = "sha256-wJPwooj1f1xb+DhnxaF6iDD9NASlgQZ1OPgrtCCXtoQ="; + }; + + nativeBuildInputs = [ + pkg-config + zig + ]; + + buildInputs = [ + libxkbcommon + wayland + # wayland-scanner must be placed in buildInputs in order for build to succeed + wayland-scanner + river + wayland-protocols + river-channel + dbus + ]; + + zigDeps = zig.fetchDeps { + inherit (finalAttrs) src pname version; + hash = "sha256-nePZDV4TnFdI20cvhmyRoNi4OG33f+bvRPOE1xbrG4E="; + }; + + zigBuildFlags = [ + "-Dstrip=${boolToString withStripDebug}" + ]; + + postConfigure = '' + ln -s ${finalAttrs.zigDeps} $ZIG_GLOBAL_CACHE_DIR/p + ''; + + passthru = { + providedSessions = [ "rhine" ]; + updateScript = nix-update-script { }; + }; + + meta = { + homepage = "https://codeberg.org/sivecano/rhine"; + description = "window manager for river supporting multiple layouts and awesome animations"; + maintainers = with lib.maintainers; [ + OulipianSummer + atemu + ]; + license = with lib.licenses; [ + gpl3Only + ]; + mainProgram = "rhine"; + }; +})