{
lib,
mkHyprlandPlugin,
hyprland,
cmake,
fetchFromGitHub,
unstableGitUpdater,
}:
mkHyprlandPlugin hyprland {
pluginName = "hyprscroller";
version = "0-unstable-2024-11-09";
src = fetchFromGitHub {
owner = "dawsers";
repo = "hyprscroller";
rev = "556e01458ba26aa63253ae590a6aa8b2601ecf03";
hash = "sha256-lILkkTNwPxMvfYNpusbakl2BW4lvNUZcIputwAfHHAE=";
};
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/dawsers/hyprscroller";
description = "Hyprland layout plugin providing a scrolling layout like PaperWM";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ donovanglover ];
platforms = lib.platforms.linux;
}