2023-04-27 00:58:01 +02:00
|
|
|
{
|
2024-06-11 15:05:05 +02:00
|
|
|
description = "Official Hyprland Plugins";
|
2023-04-27 00:58:01 +02:00
|
|
|
|
2024-03-07 10:29:46 +01:00
|
|
|
inputs = {
|
2024-11-14 22:28:54 +01:00
|
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
2024-06-11 15:05:05 +02:00
|
|
|
nixpkgs.follows = "hyprland/nixpkgs";
|
2024-03-07 10:29:46 +01:00
|
|
|
systems.follows = "hyprland/systems";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = {
|
|
|
|
self,
|
|
|
|
hyprland,
|
2024-06-11 15:05:05 +02:00
|
|
|
nixpkgs,
|
2024-03-07 10:29:46 +01:00
|
|
|
systems,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
inherit (nixpkgs) lib;
|
|
|
|
eachSystem = lib.genAttrs (import systems);
|
2023-04-27 00:58:01 +02:00
|
|
|
|
2024-03-07 10:29:46 +01:00
|
|
|
pkgsFor = eachSystem (system:
|
|
|
|
import nixpkgs {
|
|
|
|
localSystem.system = system;
|
2024-05-03 20:47:04 +02:00
|
|
|
overlays = [
|
|
|
|
self.overlays.hyprland-plugins
|
2024-12-17 18:03:49 +01:00
|
|
|
self.overlays.gcc14Stdenv
|
2024-05-03 20:47:04 +02:00
|
|
|
hyprland.overlays.hyprland-packages
|
|
|
|
];
|
2024-03-07 10:29:46 +01:00
|
|
|
});
|
2023-04-27 00:58:01 +02:00
|
|
|
in {
|
2024-03-07 10:29:46 +01:00
|
|
|
packages = eachSystem (system: {
|
2024-05-03 20:47:04 +02:00
|
|
|
inherit
|
2024-06-11 15:05:05 +02:00
|
|
|
(pkgsFor.${system}.hyprlandPlugins)
|
2024-05-03 20:47:04 +02:00
|
|
|
borders-plus-plus
|
|
|
|
csgo-vulkan-fix
|
|
|
|
hyprbars
|
|
|
|
hyprexpo
|
|
|
|
hyprtrails
|
|
|
|
hyprwinwrap
|
|
|
|
;
|
2023-04-27 00:58:01 +02:00
|
|
|
});
|
|
|
|
|
2024-03-07 10:29:46 +01:00
|
|
|
overlays = {
|
|
|
|
default = self.overlays.hyprland-plugins;
|
2024-05-03 20:47:04 +02:00
|
|
|
|
|
|
|
hyprland-plugins = final: prev: let
|
|
|
|
inherit (final) callPackage;
|
|
|
|
in {
|
2024-12-17 18:03:49 +01:00
|
|
|
hyprlandPlugins =
|
|
|
|
(prev.hyprlandPlugins
|
|
|
|
or {})
|
|
|
|
// {
|
|
|
|
borders-plus-plus = callPackage ./borders-plus-plus {};
|
|
|
|
csgo-vulkan-fix = callPackage ./csgo-vulkan-fix {};
|
|
|
|
hyprbars = callPackage ./hyprbars {};
|
|
|
|
hyprexpo = callPackage ./hyprexpo {};
|
|
|
|
hyprtrails = callPackage ./hyprtrails {};
|
|
|
|
hyprwinwrap = callPackage ./hyprwinwrap {};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
# TODO: remove when https://github.com/NixOS/nixpkgs/pull/365776 lands in master
|
|
|
|
gcc14Stdenv = final: prev: {
|
|
|
|
hyprlandPlugins =
|
|
|
|
(prev.hyprlandPlugins or {})
|
|
|
|
// {
|
|
|
|
mkHyprlandPlugin = hyprland: args @ {pluginName, ...}:
|
|
|
|
hyprland.stdenv.mkDerivation (
|
|
|
|
args
|
|
|
|
// {
|
|
|
|
pname = pluginName;
|
|
|
|
nativeBuildInputs = [prev.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.";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
};
|
2024-05-03 20:47:04 +02:00
|
|
|
};
|
2024-03-07 10:29:46 +01:00
|
|
|
};
|
2024-01-28 22:51:54 +01:00
|
|
|
|
2024-03-07 10:29:46 +01:00
|
|
|
checks = eachSystem (system: self.packages.${system});
|
|
|
|
|
|
|
|
devShells = eachSystem (system:
|
|
|
|
with pkgsFor.${system}; {
|
2024-12-17 18:03:49 +01:00
|
|
|
default = mkShell.override {stdenv = gcc14Stdenv;} {
|
2024-03-07 10:29:46 +01:00
|
|
|
name = "hyprland-plugins";
|
|
|
|
buildInputs = [hyprland.packages.${system}.hyprland];
|
|
|
|
inputsFrom = [hyprland.packages.${system}.hyprland];
|
|
|
|
};
|
|
|
|
});
|
2023-04-27 00:58:01 +02:00
|
|
|
};
|
|
|
|
}
|