File: flake.nix

package info (click to toggle)
hyprutils 0.11.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 576 kB
  • sloc: cpp: 5,624; sh: 10; makefile: 3
file content (36 lines) | stat: -rw-r--r-- 900 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  description = "Small C++ library for utilities used across the Hypr* ecosystem";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    systems.url = "github:nix-systems/default-linux";
  };

  outputs =
    {
      self,
      nixpkgs,
      systems,
    }:
    let
      inherit (nixpkgs) lib;
      eachSystem = lib.genAttrs (import systems);
      pkgsFor = eachSystem (
        system:
        import nixpkgs {
          localSystem.system = system;
          overlays = with self.overlays; [ hyprutils ];
        }
      );
    in
    {
      overlays = import ./nix/overlays.nix { inherit self lib; };

      packages = eachSystem (system: {
        default = self.packages.${system}.hyprutils;
        inherit (pkgsFor.${system}) hyprutils hyprutils-debug hyprutils-with-tests;
      });

      formatter = eachSystem (system: pkgsFor.${system}.nixfmt-tree);
    };
}