Unverified Commit 1ceb05bc authored by Masum Reza's avatar Masum Reza Committed by GitHub
Browse files

Merge pull request #325582 from donovanglover/hypr-dynamic-cursors

hyprlandPlugins.hypr-dynamic-cursors: init at 0-unstable-2024-07-06
parents 8a92d489 a2dc867e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ let

  plugins = lib.mergeAttrsList [
    { hy3 = import ./hy3.nix; }
    { hypr-dynamic-cursors = import ./hypr-dynamic-cursors.nix; }
    { hyprfocus = import ./hyprfocus.nix; }
    (import ./hyprland-plugins.nix)
  ];
+37 −0
Original line number Diff line number Diff line
{
  lib,
  mkHyprlandPlugin,
  fetchFromGitHub,
  hyprland,
}:

mkHyprlandPlugin hyprland {
  pluginName = "hypr-dynamic-cursors";
  version = "0-unstable-2024-07-06";

  src = fetchFromGitHub {
    owner = "VirtCode";
    repo = "hypr-dynamic-cursors";
    rev = "85423b074e112f28e84f6276d31d1548906a625e";
    hash = "sha256-lCAZ/7xtOE6P7uPIX2uQgC0nDOBZefWYO3O3izRx19E=";
  };

  dontUseCmakeConfigure = true;

  installPhase = ''
    runHook preInstall

    mkdir -p $out/lib
    mv out/dynamic-cursors.so $out/lib/libdynamic-cursors.so

    runHook postInstall
  '';

  meta = {
    description = "Plugin to make your Hyprland cursor more realistic";
    homepage = "https://github.com/VirtCode/hypr-dynamic-cursors";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ donovanglover ];
    platforms = lib.platforms.linux;
  };
}