hyprlandPlugins: init upstream hyprland-plugins at 0.41.1
This commit is contained in:
parent
ef64bb4915
commit
cf7b89e9a6
|
@ -24,9 +24,10 @@ let
|
|||
}
|
||||
);
|
||||
|
||||
plugins = {
|
||||
hy3 = import ./hy3.nix;
|
||||
};
|
||||
plugins = lib.mergeAttrsList [
|
||||
{ hy3 = import ./hy3.nix; }
|
||||
(import ./hyprland-plugins.nix)
|
||||
];
|
||||
in
|
||||
(lib.mapAttrs (name: plugin: callPackage plugin { inherit mkHyprlandPlugin; }) plugins)
|
||||
// {
|
||||
|
|
|
@ -0,0 +1,51 @@
|
|||
let
|
||||
# shared src for upstream hyprland-plugins repo
|
||||
# function generating derivations for all plugins in hyprland-plugins
|
||||
hyprland-plugins =
|
||||
builtins.mapAttrs
|
||||
(
|
||||
name: description:
|
||||
(
|
||||
{
|
||||
lib,
|
||||
cmake,
|
||||
fetchFromGitHub,
|
||||
hyprland,
|
||||
mkHyprlandPlugin,
|
||||
}:
|
||||
let
|
||||
version = "0.41.1";
|
||||
|
||||
hyprland-plugins-src = fetchFromGitHub {
|
||||
owner = "hyprwm";
|
||||
repo = "hyprland-plugins";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-Bw3JRBUZg2kmDwxa/UHvD//gGcNjbftTj2MSeLvx1q8=";
|
||||
};
|
||||
in
|
||||
mkHyprlandPlugin hyprland {
|
||||
pluginName = name;
|
||||
inherit version;
|
||||
|
||||
src = "${hyprland-plugins-src}/${name}";
|
||||
nativeBuildInputs = [ cmake ];
|
||||
meta = {
|
||||
homepage = "https://github.com/hyprwm/hyprland-plugins";
|
||||
description = "Hyprland ${description} plugin";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ fufexan ];
|
||||
platforms = lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
)
|
||||
)
|
||||
{
|
||||
borders-plus-plus = "multiple borders";
|
||||
csgo-vulkan-fix = "CS:GO/CS2 Vulkan fix";
|
||||
hyprbars = "window title";
|
||||
hyprexpo = "workspaces overview";
|
||||
hyprtrails = "smooth trails behind moving windows";
|
||||
hyprwinwrap = "xwinwrap-like";
|
||||
};
|
||||
in
|
||||
hyprland-plugins
|
Loading…
Reference in New Issue
Block a user