-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
63 lines (56 loc) · 1.51 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
description = "hypr-which-key";
inputs = {
hyprland.url = "git+https://github.com/Moerliy/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})
hypr-which-key
;
});
overlays = {
default = self.overlays.hyprland-plugins;
hyprland-plugins = final: prev: let
inherit (final) callPackage;
in {
hypr-which-key = callPackage ./hypr-which-key {};
};
};
checks = eachSystem (system: self.packages.${system});
devShells = eachSystem (system:
with pkgsFor.${system}; {
default = mkShell.override {stdenv = gcc13Stdenv;} {
name = "hypr-which-key";
buildInputs = [hyprland.packages.${system}.hyprland];
inputsFrom = [
hyprland.packages.${system}.hyprland
# self.packages.${system}.hypr-which-key
];
};
programs.hyprland = {
enable = true;
package = (hyprland.packages.${system}.hyprland.override { debug = true; });
};
});
};
}