depot/third_party/nixpkgs/pkgs/applications/window-managers/hyprwm/hyprland-plugins/hyprscroller.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

41 lines
918 B
Nix

{
lib,
mkHyprlandPlugin,
hyprland,
cmake,
fetchFromGitHub,
unstableGitUpdater,
}:
mkHyprlandPlugin hyprland {
pluginName = "hyprscroller";
version = "0-unstable-2024-10-10";
src = fetchFromGitHub {
owner = "dawsers";
repo = "hyprscroller";
rev = "1a907fd38594ec58a8fe5d68be0dcf2f9e76b0f8";
hash = "sha256-cgwHl2YtqrnS0ThUyycFGYoYozpq7zT9POARrQAoahY=";
};
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;
};
}