forked from hyprland-community/Hyprkeys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
32 lines (28 loc) · 898 Bytes
/
flake.nix
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
{
description = "Hyprkeys - a keybind inspection utility for Hyprland";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
nix-filter.url = "github:numtide/nix-filter";
};
outputs = {
self,
nixpkgs,
nix-filter,
}: let
systems = ["x86_64-linux" "aarch64-linux"]; # we assume Hyprland only works on those two, for now
forEachSystem = nixpkgs.lib.genAttrs systems;
pkgsForEach = nixpkgs.legacyPackages;
in {
packages = forEachSystem (system: rec {
hyprkeys = pkgsForEach.${system}.callPackage ./default.nix {inherit nix-filter;};
default = hyprkeys;
});
devShells = forEachSystem (system: {
default = pkgsForEach.${system}.mkShell {
name = "hyprkeys-dev";
packages = with pkgsForEach.${system}; [go];
};
});
formatter = forEachSystem (system: nixpkgs.legacyPackages.${system}.alejandra);
};
}