2023-04-12 01:33:00 -07:00
|
|
|
{
|
|
|
|
inputs = {
|
2024-07-13 22:58:01 -07:00
|
|
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1&rev=bc6b0880dda2607a80f000c134f573c970452a0f";
|
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;
|
2024-05-19 01:48:12 -07:00
|
|
|
hyprland = (pkgs.appendOverlays [ hyprland.overlays.hyprland-packages ]).hyprland-debug.overrideAttrs {
|
|
|
|
dontStrip = true;
|
|
|
|
};
|
2023-04-12 01:33:00 -07:00
|
|
|
};
|
|
|
|
});
|
2023-04-28 00:01:26 -07:00
|
|
|
};
|
2023-04-12 01:33:00 -07:00
|
|
|
}
|