forked from DreamMaoMao/hycov
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
55 lines (51 loc) · 1.36 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
{
description = "Hyprland Plugins (Hycov)";
inputs = {
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1";
nixpkgs.follows = "hyprland/nixpkgs";
systems.follows = "hyprland/systems";
};
outputs =
{ self
, hyprland
, nixpkgs
, systems
}:
let
inherit (nixpkgs) lib;
withPkgsFor = fn: lib.genAttrs (import systems) (system:
let
pkgs = import nixpkgs {
localSystem.system = system;
overlays = [
hyprland.overlays.hyprland-packages
self.overlays.default
];
};
in
fn system pkgs);
in
{
overlays = {
default = self.overlays.hycov;
hycov = final: prev: {
hyprlandPlugins = prev.hyprlandPlugins or {} // {
hycov = final.callPackage ./default.nix {
stdenv = final.gcc13Stdenv;
};
};
};
};
packages = withPkgsFor (system: pkgs: {
default = self.packages.${system}.hycov;
inherit (pkgs.hyprlandPlugins) hycov;
});
devShells = withPkgsFor (system: pkgs: {
default = pkgs.mkShell.override { stdenv = pkgs.gcc13Stdenv; } {
name = "hyprland-plugins";
# buildInputs = [ pkgs.hyprland ];
inputsFrom = [ pkgs.hycov ];
};
});
};
}