Merge pull request #292419 from fufexan/hyprland
This commit is contained in:
commit
6c2d774353
1 changed files with 5 additions and 6 deletions
|
@ -5,7 +5,7 @@
|
||||||
, hyprland
|
, hyprland
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
mkHyprlandPlugin =
|
mkHyprlandPlugin = hyprland:
|
||||||
args@{ pluginName, ... }:
|
args@{ pluginName, ... }:
|
||||||
stdenv.mkDerivation (args // {
|
stdenv.mkDerivation (args // {
|
||||||
pname = "${pluginName}";
|
pname = "${pluginName}";
|
||||||
|
@ -14,15 +14,15 @@ let
|
||||||
++ hyprland.buildInputs
|
++ hyprland.buildInputs
|
||||||
++ (args.buildInputs or [ ]);
|
++ (args.buildInputs or [ ]);
|
||||||
meta = args.meta // {
|
meta = args.meta // {
|
||||||
description = (args.meta.description or "");
|
description = args.meta.description or "";
|
||||||
longDescription = (args.meta.lonqDescription or "") +
|
longDescription = (args.meta.longDescription or "") +
|
||||||
"\n\nPlugins can be installed via a plugin entry in the Hyprland NixOS or Home Manager options.";
|
"\n\nPlugins can be installed via a plugin entry in the Hyprland NixOS or Home Manager options.";
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
plugins = {
|
plugins = {
|
||||||
hy3 = { fetchFromGitHub, cmake, hyprland }:
|
hy3 = { fetchFromGitHub, cmake, hyprland }:
|
||||||
mkHyprlandPlugin rec {
|
mkHyprlandPlugin hyprland rec {
|
||||||
pluginName = "hy3";
|
pluginName = "hy3";
|
||||||
version = "0.35.0";
|
version = "0.35.0";
|
||||||
|
|
||||||
|
@ -47,5 +47,4 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
lib.mapAttrs (name: plugin: callPackage plugin { }) plugins
|
(lib.mapAttrs (name: plugin: callPackage plugin { }) plugins) // { inherit mkHyprlandPlugin; }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue