hyprland-plugins/flake.nix

37 lines
1.2 KiB
Nix
Raw Normal View History

2023-04-27 00:58:01 +02:00
{
description = "Hyprland Plugins";
inputs.hyprland.url = "github:hyprwm/Hyprland";
2024-01-28 22:51:54 +01:00
outputs = inputs: let
inherit (inputs.hyprland.inputs) nixpkgs;
withPkgsFor = fn: nixpkgs.lib.genAttrs (builtins.attrNames inputs.hyprland.packages) (system: fn system nixpkgs.legacyPackages.${system});
2023-04-27 00:58:01 +02:00
in {
2024-01-28 22:51:54 +01:00
packages = withPkgsFor (system: pkgs: let
hyprland = inputs.hyprland.packages.${system}.hyprland;
buildPlugin = path: extraArgs:
pkgs.callPackage path {
inherit hyprland;
inherit (hyprland) stdenv;
}
// extraArgs;
in {
borders-plus-plus = buildPlugin ./borders-plus-plus {};
csgo-vulkan-fix = buildPlugin ./csgo-vulkan-fix {};
hyprbars = buildPlugin ./hyprbars {};
hyprtrails = buildPlugin ./hyprtrails {};
hyprwinwrap = buildPlugin ./hyprwinwrap {};
2023-04-27 00:58:01 +02:00
});
2024-01-28 22:51:54 +01:00
checks = withPkgsFor (system: pkgs: inputs.self.packages.${system});
2023-04-27 00:58:01 +02:00
devShells = withPkgsFor (system: pkgs: {
2023-10-04 11:08:57 +02:00
default = pkgs.mkShell.override {stdenv = pkgs.gcc13Stdenv;} {
2023-04-27 00:58:01 +02:00
name = "hyprland-plugins";
2024-01-28 22:51:54 +01:00
buildInputs = [inputs.hyprland.packages.${system}.hyprland];
inputsFrom = [inputs.hyprland.packages.${system}.hyprland];
2023-04-27 00:58:01 +02:00
};
});
};
}