nixpkgs/pkgs/applications/window-managers/hyprwm/hyprland/plugins.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.4 KiB
Nix
Raw Normal View History

2023-11-03 18:04:21 +00:00
{ lib
, callPackage
, pkg-config
, stdenv
2023-11-03 18:04:21 +00:00
, hyprland
}:
let
mkHyprlandPlugin = hyprland:
2023-11-03 18:04:21 +00:00
args@{ pluginName, ... }:
stdenv.mkDerivation (args // {
2023-11-03 18:04:21 +00:00
pname = "${pluginName}";
nativeBuildInputs = [ pkg-config ] ++ args.nativeBuildInputs or [ ];
buildInputs = [ hyprland ]
++ hyprland.buildInputs
++ (args.buildInputs or [ ]);
meta = args.meta // {
description = args.meta.description or "";
longDescription = (args.meta.longDescription or "") +
2023-11-03 18:04:21 +00:00
"\n\nPlugins can be installed via a plugin entry in the Hyprland NixOS or Home Manager options.";
};
});
plugins = {
hy3 = { fetchFromGitHub, cmake, hyprland }:
mkHyprlandPlugin hyprland {
2023-11-03 18:04:21 +00:00
pluginName = "hy3";
version = "0.39.1";
2023-11-03 18:04:21 +00:00
src = fetchFromGitHub {
owner = "outfoxxed";
repo = "hy3";
rev = "hl0.39.1";
hash = "sha256-PqVld+oFziSt7VZTNBomPyboaMEAIkerPQFwNJL/Wjw=";
2023-11-03 18:04:21 +00:00
};
nativeBuildInputs = [ cmake ];
dontStrip = true;
meta = with lib; {
homepage = "https://github.com/outfoxxed/hy3";
description = "Hyprland plugin for an i3 / sway like manual tiling layout";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = [ maintainers.aacebedo ];
};
};
};
in
(lib.mapAttrs (name: plugin: callPackage plugin { }) plugins) // { inherit mkHyprlandPlugin; }