2023-04-12 01:33:00 -07:00
|
|
|
{
|
|
|
|
inputs = {
|
2024-05-05 18:14:15 -07:00
|
|
|
hyprland.url = "github:hyprwm/Hyprland?rev=cba1ade848feac44b2eda677503900639581c3f4";
|
2023-04-12 01:33:00 -07:00
|
|
|
};
|
|
|
|
|
2023-04-28 00:45:44 -07:00
|
|
|
outputs = { self, hyprland, ... }: let
|
2023-04-28 00:01:26 -07:00
|
|
|
inherit (hyprland.inputs) nixpkgs;
|
|
|
|
|
2024-03-05 03:13:50 -08:00
|
|
|
hyprlandSystems = fn: nixpkgs.lib.genAttrs
|
|
|
|
(builtins.attrNames hyprland.packages)
|
|
|
|
(system: fn system nixpkgs.legacyPackages.${system});
|
2023-04-28 00:01:26 -07:00
|
|
|
|
2024-03-05 03:13:50 -08:00
|
|
|
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;
|
2023-04-12 01:33:00 -07:00
|
|
|
};
|
2023-04-28 00:01:26 -07:00
|
|
|
default = hy3;
|
|
|
|
});
|
|
|
|
|
|
|
|
devShells = hyprlandSystems (system: pkgs: {
|
2024-03-05 03:13:50 -08:00
|
|
|
default = import ./shell.nix {
|
|
|
|
inherit pkgs;
|
|
|
|
hlversion = props.version;
|
|
|
|
hyprland = hyprland.packages.${system}.hyprland-debug;
|
|
|
|
};
|
2023-04-12 01:33:00 -07:00
|
|
|
|
2024-03-05 03:13:50 -08:00
|
|
|
impure = import ./shell.nix {
|
|
|
|
pkgs = import <nixpkgs> {};
|
|
|
|
hlversion = props.version;
|
|
|
|
hyprland = (pkgs.appendOverlays [ hyprland.overlays.hyprland-packages ]).hyprland-debug;
|
2023-04-12 01:33:00 -07:00
|
|
|
};
|
|
|
|
});
|
2023-04-28 00:01:26 -07:00
|
|
|
};
|
2023-04-12 01:33:00 -07:00
|
|
|
}
|