mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-22 12:45:59 +01:00
Nix/Plugins: clarify plugin example
This commit is contained in:
parent
d0c0ac1e8c
commit
9018cb76cf
1 changed files with 39 additions and 34 deletions
|
@ -78,16 +78,15 @@ using a general function, `mkHyprlandPlugin`. Any plugin can be made to work
|
||||||
with it. The general usage is presented below, exemplified through hy3's
|
with it. The general usage is presented below, exemplified through hy3's
|
||||||
derivation:
|
derivation:
|
||||||
|
|
||||||
```nix
|
```nix {filename="plugin.nix"}
|
||||||
{pkgs, ...}: {
|
{
|
||||||
hy3 = pkgs.callPackage ({
|
|
||||||
lib,
|
lib,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
cmake,
|
cmake,
|
||||||
hyprland,
|
hyprland,
|
||||||
hyprlandPlugins,
|
hyprlandPlugins,
|
||||||
}:
|
}:
|
||||||
hyprlandPlugins.mkHyprlandPlugin pkgs.hyprland {
|
hyprlandPlugins.mkHyprlandPlugin hyprland {
|
||||||
pluginName = "hy3";
|
pluginName = "hy3";
|
||||||
version = "0.39.1";
|
version = "0.39.1";
|
||||||
|
|
||||||
|
@ -110,9 +109,15 @@ derivation:
|
||||||
description = "Hyprland plugin for an i3 / sway like manual tiling layout";
|
description = "Hyprland plugin for an i3 / sway like manual tiling layout";
|
||||||
license = lib.licenses.gpl3;
|
license = lib.licenses.gpl3;
|
||||||
platforms = lib.platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
maintainers = with lib.maintainers; [aacebedo];
|
|
||||||
};
|
};
|
||||||
});
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
```nix {filename="home.nix"}
|
||||||
|
{pkgs, ...}: {
|
||||||
|
wayland.windowManager.hyprland.plugins = [
|
||||||
|
(pkgs.callPackage ./plugin.nix {})
|
||||||
|
];
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue