hyprland-plugins/flake.nix
Mihai Fufezan d716d12213 treewide: add CMake files
- Nix: switch everything to CMake
- simplify overlay
2024-05-05 16:36:13 +03:00

66 lines
1.6 KiB
Nix

{
description = "Hyprland Plugins";
inputs = {
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
systems.follows = "hyprland/systems";
};
outputs = {
self,
hyprland,
systems,
...
}: let
inherit (hyprland.inputs) nixpkgs;
inherit (nixpkgs) lib;
eachSystem = lib.genAttrs (import systems);
pkgsFor = eachSystem (system:
import nixpkgs {
localSystem.system = system;
overlays = [
self.overlays.hyprland-plugins
hyprland.overlays.hyprland-packages
];
});
in {
packages = eachSystem (system: {
inherit
(pkgsFor.${system})
borders-plus-plus
csgo-vulkan-fix
hyprbars
hyprexpo
hyprtrails
hyprwinwrap
;
});
overlays = {
default = self.overlays.hyprland-plugins;
hyprland-plugins = final: prev: let
inherit (final) callPackage;
in {
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 {};
};
};
checks = eachSystem (system: self.packages.${system});
devShells = eachSystem (system:
with pkgsFor.${system}; {
default = mkShell.override {stdenv = gcc13Stdenv;} {
name = "hyprland-plugins";
buildInputs = [hyprland.packages.${system}.hyprland];
inputsFrom = [hyprland.packages.${system}.hyprland];
};
});
};
}