forked from Trensa-Organization/hy3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
executable file
·37 lines (32 loc) · 1.03 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
{
inputs = {
hyprland.url = "github:hyprwm/Hyprland";
};
outputs = { self, hyprland, ... }: let
inherit (hyprland.inputs) nixpkgs;
hyprlandSystems = fn: nixpkgs.lib.genAttrs
(builtins.attrNames hyprland.packages)
(system: fn system nixpkgs.legacyPackages.${system});
props = builtins.fromJSON (builtins.readFile "${hyprland}/props.json");
in {
packages = hyprlandSystems (system: pkgs: rec {
hy3 = pkgs.callPackage ./default.nix {
hyprland = hyprland.packages.${system}.hyprland;
hlversion = props.version;
};
default = hy3;
});
devShells = hyprlandSystems (system: pkgs: {
default = import ./shell.nix {
inherit pkgs;
hlversion = props.version;
hyprland = hyprland.packages.${system}.hyprland-debug;
};
impure = import ./shell.nix {
pkgs = import <nixpkgs> {};
hlversion = props.version;
hyprland = (pkgs.appendOverlays [ hyprland.overlays.hyprland-packages ]).hyprland-debug;
};
});
};
}