2023-04-12 01:33:00 -07:00
|
|
|
{
|
|
|
|
inputs = {
|
2024-07-21 11:22:09 -07:00
|
|
|
hyprland.url = "git+https://github.com/hyprwm/Hyprland?submodules=1&rev=928d1dd38a6e4a791d4a4374a4a3bf02311adbb2";
|
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-07-21 11:22:09 -07:00
|
|
|
hyprlandVersion = nixpkgs.lib.removeSuffix "\n" (builtins.readFile "${hyprland}/VERSION");
|
2024-03-05 03:13:50 -08:00
|
|
|
in {
|
|
|
|
packages = hyprlandSystems (system: pkgs: rec {
|
|
|
|
hy3 = pkgs.callPackage ./default.nix {
|
|
|
|
hyprland = hyprland.packages.${system}.hyprland;
|
2024-07-21 11:22:09 -07:00
|
|
|
hlversion = hyprlandVersion;
|
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;
|
2024-07-21 11:22:09 -07:00
|
|
|
hlversion = hyprlandVersion;
|
2024-03-05 03:13:50 -08:00
|
|
|
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> {};
|
2024-07-21 11:22:09 -07:00
|
|
|
hlversion = hyprlandVersion;
|
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
|
|
|
}
|