From 2d1517e710d1b472e8af75925f0cbd4c6179394d Mon Sep 17 00:00:00 2001 From: KaitoTLex Date: Tue, 27 May 2025 16:59:44 -0700 Subject: [PATCH] imma cry --- flake.lock | 6 +++--- pkgs/hyprland/hyprscroller.nix | 19 ++++++++++++++++--- .../desktop-environment/hyprland/default.nix | 2 +- 3 files changed, 20 insertions(+), 7 deletions(-) diff --git a/flake.lock b/flake.lock index dcf6bdc..1d23824 100644 --- a/flake.lock +++ b/flake.lock @@ -637,11 +637,11 @@ "tinted-zed": "tinted-zed" }, "locked": { - "lastModified": 1748369100, - "narHash": "sha256-rZO2WC1cVIpmwtBKxkex4lJAM7zqut3+5QKZltBkG5U=", + "lastModified": 1748376235, + "narHash": "sha256-LIQnskjlVHTJC5dW4xoWlMCtrKeWOPW7/8HYd8IruLA=", "owner": "danth", "repo": "stylix", - "rev": "dedf5de5792af6c16560f9cc8864be73ae535251", + "rev": "e38a646e5cd3d000c8fffb14632f3bb8a45dd042", "type": "github" }, "original": { diff --git a/pkgs/hyprland/hyprscroller.nix b/pkgs/hyprland/hyprscroller.nix index d3261b2..bce38fa 100644 --- a/pkgs/hyprland/hyprscroller.nix +++ b/pkgs/hyprland/hyprscroller.nix @@ -1,10 +1,12 @@ { + lib, + fetchFromGitHub, hyprland, pkg-config, cmake, - src, - version, + unstableGitUpdater, + }: let mkHyprlandPlugin = @@ -26,18 +28,29 @@ let ); in mkHyprlandPlugin hyprland { - inherit src version; pluginName = "hyprscroller"; + version = "0-unstable-2025-05-16"; + + src = fetchFromGitHub { + owner = "cpiber"; + repo = "hyprscroller"; + rev = "de97924b6d1086d84939b6f6688637f7b21d8d80"; + hash = "sha256-m9689UH+w8Z/qP/DKYtzQfIGfiE4jgBAfO+uH34cfNs="; + }; nativeBuildInputs = [ cmake ]; installPhase = '' runHook preInstall + mkdir -p $out/lib mv hyprscroller.so $out/lib/libhyprscroller.so + runHook postInstall ''; + passthru.updateScript = unstableGitUpdater { }; + meta = { homepage = "https://github.com/cpiber/hyprscroller"; description = "Hyprland layout plugin providing a scrolling layout like PaperWM"; diff --git a/users/kaitotlex/desktop-environment/hyprland/default.nix b/users/kaitotlex/desktop-environment/hyprland/default.nix index ae7e296..04dd0c2 100644 --- a/users/kaitotlex/desktop-environment/hyprland/default.nix +++ b/users/kaitotlex/desktop-environment/hyprland/default.nix @@ -101,7 +101,7 @@ in wayland.windowManager.hyprland = let - hyprscroller = pkgs.callPackage ../../pkgs/hyprland/hyprscroller.nix { + hyprscroller = pkgs.callPackage ../../../../pkgs/hyprland/hyprscroller.nix { src = inputs.hyprscroller-src; version = inputs.hyprscroller-src.lastModified; };