-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #320347 from fufexan/backport-319131-to-release-24.05
[Backport release-24.05] hyprland: 0.40.0-unstable-2024-05-05 -> 0.41.1; hyprwayland-scanner: 0.3.4 -> 0.3.10; hyprlandPlugins.hy3: 0.40.0 -> 0.41.0; hyprutils: init at 0.1.2; hyprlandPlugins: init upstream hyprland-plugins at 0.41.1, hy3: 0.41.0 -> 0.41.1
- Loading branch information
Showing
12 changed files
with
281 additions
and
87 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
pkgs/applications/window-managers/hyprwm/hyprland-plugins/default.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
lib, | ||
callPackage, | ||
pkg-config, | ||
stdenv, | ||
hyprland, | ||
}: | ||
let | ||
mkHyprlandPlugin = | ||
hyprland: | ||
args@{ pluginName, ... }: | ||
stdenv.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.longDescription or "") | ||
+ "\n\nPlugins can be installed via a plugin entry in the Hyprland NixOS or Home Manager options."; | ||
}; | ||
} | ||
); | ||
|
||
plugins = lib.mergeAttrsList [ | ||
{ hy3 = import ./hy3.nix; } | ||
(import ./hyprland-plugins.nix) | ||
]; | ||
in | ||
(lib.mapAttrs (name: plugin: callPackage plugin { inherit mkHyprlandPlugin; }) plugins) | ||
// { | ||
inherit mkHyprlandPlugin; | ||
} |
30 changes: 30 additions & 0 deletions
30
pkgs/applications/window-managers/hyprwm/hyprland-plugins/hy3.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
lib, | ||
cmake, | ||
fetchFromGitHub, | ||
hyprland, | ||
mkHyprlandPlugin, | ||
}: | ||
mkHyprlandPlugin hyprland rec { | ||
pluginName = "hy3"; | ||
version = "0.41.1"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "outfoxxed"; | ||
repo = "hy3"; | ||
rev = "hl${version}"; | ||
hash = "sha256-bRLI+zgfT31LCMW4Pf701ZZx2oFeXoBu1BfYQjX6MPc="; | ||
}; | ||
|
||
nativeBuildInputs = [ cmake ]; | ||
|
||
dontStrip = true; | ||
|
||
meta = { | ||
homepage = "https://github.com/outfoxxed/hy3"; | ||
description = "Hyprland plugin for an i3 / sway like manual tiling layout"; | ||
license = lib.licenses.gpl3; | ||
platforms = lib.platforms.linux; | ||
maintainers = with lib.maintainers; [ aacebedo ]; | ||
}; | ||
} |
51 changes: 51 additions & 0 deletions
51
pkgs/applications/window-managers/hyprwm/hyprland-plugins/hyprland-plugins.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
50 changes: 0 additions & 50 deletions
50
pkgs/applications/window-managers/hyprwm/hyprland/plugins.nix
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"branch": "main", | ||
"commit_hash": "9e781040d9067c2711ec2e9f5b47b76ef70762b3", | ||
"commit_message": "props: bump version to 0.41.1", | ||
"date": "2024-06-13", | ||
"tag": "v0.41.1" | ||
} |
Oops, something went wrong.