mirror of
https://github.com/youwen5/nixos.git
synced 2025-02-07 21:11:11 -08:00
refactor: directly override hyprscroller instead of overlay, bump ver
Some checks are pending
Check flake / check (push) Waiting to run
Some checks are pending
Check flake / check (push) Waiting to run
This commit is contained in:
parent
c6235fe00c
commit
fffd743d54
2 changed files with 20 additions and 22 deletions
|
@ -85,7 +85,17 @@ in
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
enable = true;
|
enable = true;
|
||||||
plugins = lib.mkIf cfg.hyprscroller.enable [ pkgs.hyprlandPlugins.hyprscroller ];
|
plugins = lib.mkIf cfg.hyprscroller.enable [
|
||||||
|
(pkgs.hyprlandPlugins.hyprscroller.overrideAttrs {
|
||||||
|
version = "0.47.2";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "dawsers";
|
||||||
|
repo = "hyprscroller";
|
||||||
|
rev = "ce7503685297d88e0bb0961343ed3fbed21c559c";
|
||||||
|
hash = "sha256-3pGIe4H1LUOJw0ULfVwZ7Ph7r/AyEipx7jbWP7zz3MU=";
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
settings = {
|
settings = {
|
||||||
"$mod" = "SUPER";
|
"$mod" = "SUPER";
|
||||||
"$Left" = "H";
|
"$Left" = "H";
|
||||||
|
|
|
@ -13,25 +13,13 @@ in
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(import ../pkgs { inherit pkgs; })
|
(import ../pkgs { inherit pkgs; })
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
hyprlandPlugins.hyprscroller =
|
hyprlandPlugins.hyprscroller = prev.hyprlandPlugins.hyprscroller.overrideAttrs {
|
||||||
if (lib.versionAtLeast pkgs.hyprland.version "0.47.1") then
|
version = "0.47.2";
|
||||||
prev.hyprlandPlugins.hyprscroller.overrideAttrs {
|
|
||||||
version = "0.47.1";
|
|
||||||
src = prev.fetchFromGitHub {
|
|
||||||
owner = "dawsers";
|
|
||||||
repo = "hyprscroller";
|
|
||||||
rev = "e4b13544ef3cc235eb9ce51e0856ba47eb36e8ac";
|
|
||||||
hash = "sha256-OYCcIsE25HqVBp8z76Tk1v+SuYR7W1nemk9mDS9GHM8=";
|
|
||||||
};
|
|
||||||
}
|
|
||||||
else
|
|
||||||
prev.hyprlandPlugins.hyprscroller.overrideAttrs {
|
|
||||||
version = "0.47.0";
|
|
||||||
src = prev.fetchFromGitHub {
|
src = prev.fetchFromGitHub {
|
||||||
owner = "dawsers";
|
owner = "dawsers";
|
||||||
repo = "hyprscroller";
|
repo = "hyprscroller";
|
||||||
rev = "ce7503685297d88e0bb0961343ed3fbed21c559c";
|
rev = "ce7503685297d88e0bb0961343ed3fbed21c559c";
|
||||||
hash = "sha256-3pGIe4H1LUOJw0ULfVwZ7Ph7r/AyEipx7jbWP7zz3MU=";
|
hash = "";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue