hyprcursor/flake.nix

41 lines
1 KiB
Nix
Raw Permalink Normal View History

2024-03-09 00:46:16 +01:00
{
description = "The hyprland cursor format, library and utilities";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default-linux";
hyprlang = {
url = "github:hyprwm/hyprlang";
inputs.systems.follows = "systems";
2024-03-09 00:46:16 +01:00
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = {
self,
nixpkgs,
systems,
...
} @ inputs: let
inherit (nixpkgs) lib;
eachSystem = lib.genAttrs (import systems);
pkgsFor = eachSystem (system:
import nixpkgs {
localSystem.system = system;
overlays = with self.overlays; [default];
});
in {
overlays = import ./nix/overlays.nix {inherit inputs lib;};
packages = eachSystem (system: {
default = self.packages.${system}.hyprcursor;
2024-10-08 22:45:47 +02:00
inherit (pkgsFor.${system}) hyprcursor hyprcursor-with-tests;
2024-03-09 00:46:16 +01:00
});
checks = eachSystem (system: self.packages.${system});
formatter = eachSystem (system: pkgsFor.${system}.alejandra);
};
}