mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-23 13:24:29 +00:00
Merge pull request #265288 from aacebedo/aacebedo/add_hyprland_plugins
hyprlandPlugins.hy3: init at 0.32.0
This commit is contained in:
commit
8a6b05a246
@ -0,0 +1,51 @@
|
||||
{ lib
|
||||
, callPackage
|
||||
, pkg-config
|
||||
, gcc13Stdenv
|
||||
, hyprland
|
||||
}:
|
||||
let
|
||||
mkHyprlandPlugin =
|
||||
args@{ pluginName, ... }:
|
||||
gcc13Stdenv.mkDerivation (args // {
|
||||
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.lonqDescription or "") +
|
||||
"\n\nPlugins can be installed via a plugin entry in the Hyprland NixOS or Home Manager options.";
|
||||
};
|
||||
});
|
||||
|
||||
plugins = {
|
||||
hy3 = { fetchFromGitHub, cmake, hyprland }:
|
||||
mkHyprlandPlugin rec {
|
||||
pluginName = "hy3";
|
||||
version = "0.32.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "outfoxxed";
|
||||
repo = "hy3";
|
||||
rev = "hl${version}";
|
||||
hash = "sha256-j49bEOLjBa1CH2gTwM+A2Edrw/GspE2m8q1teAn6SuQ=";
|
||||
};
|
||||
|
||||
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
|
||||
|
@ -5748,6 +5748,8 @@ with pkgs;
|
||||
|
||||
hyprshade = python311Packages.callPackage ../applications/window-managers/hyprwm/hyprshade { };
|
||||
|
||||
hyprlandPlugins = recurseIntoAttrs (callPackage ../applications/window-managers/hyprwm/hyprland/plugins.nix { });
|
||||
|
||||
hysteria = callPackage ../tools/networking/hysteria { };
|
||||
|
||||
hyx = callPackage ../tools/text/hyx { };
|
||||
|
Loading…
Reference in New Issue
Block a user