mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-10 12:05:58 +01:00
016da234d0
Moves Hyprland from wlroots to aquamarine for the backend. --------- Signed-off-by: Vaxry <vaxry@vaxry.net> Co-authored-by: Mihai Fufezan <mihai@fufexan.net> Co-authored-by: Jan Beich <jbeich@FreeBSD.org> Co-authored-by: vaxerski <vaxerski@users.noreply.github.com> Co-authored-by: UjinT34 <41110182+UjinT34@users.noreply.github.com> Co-authored-by: Tom Englund <tomenglund26@gmail.com> Co-authored-by: Ikalco <73481042+ikalco@users.noreply.github.com> Co-authored-by: diniamo <diniamo53@gmail.com>
66 lines
2.1 KiB
Nix
66 lines
2.1 KiB
Nix
{
|
|
self,
|
|
lib,
|
|
inputs,
|
|
}: let
|
|
props = builtins.fromJSON (builtins.readFile ../props.json);
|
|
|
|
mkDate = longDate: (lib.concatStringsSep "-" [
|
|
(builtins.substring 0 4 longDate)
|
|
(builtins.substring 4 2 longDate)
|
|
(builtins.substring 6 2 longDate)
|
|
]);
|
|
in {
|
|
# Contains what a user is most likely to care about:
|
|
# Hyprland itself, XDPH and the Share Picker.
|
|
default = lib.composeManyExtensions (with self.overlays; [
|
|
hyprland-packages
|
|
hyprland-extras
|
|
]);
|
|
|
|
# Packages for variations of Hyprland, dependencies included.
|
|
hyprland-packages = lib.composeManyExtensions [
|
|
# Dependencies
|
|
inputs.aquamarine.overlays.default
|
|
inputs.hyprcursor.overlays.default
|
|
inputs.hyprlang.overlays.default
|
|
inputs.hyprutils.overlays.default
|
|
inputs.hyprwayland-scanner.overlays.default
|
|
|
|
# Hyprland packages themselves
|
|
(final: prev: let
|
|
date = mkDate (self.lastModifiedDate or "19700101");
|
|
in {
|
|
hyprland = final.callPackage ./default.nix {
|
|
stdenv = final.gcc13Stdenv;
|
|
version = "${props.version}+date=${date}_${self.shortRev or "dirty"}";
|
|
commit = self.rev or "";
|
|
inherit date;
|
|
};
|
|
hyprland-unwrapped = final.hyprland.override {wrapRuntimeDeps = false;};
|
|
hyprland-debug = final.hyprland.override {debug = true;};
|
|
hyprland-legacy-renderer = final.hyprland.override {legacyRenderer = true;};
|
|
|
|
# deprecated packages
|
|
hyprland-nvidia =
|
|
builtins.trace ''
|
|
hyprland-nvidia was removed. Please use the hyprland package.
|
|
Nvidia patches are no longer needed.
|
|
''
|
|
final.hyprland;
|
|
|
|
hyprland-hidpi =
|
|
builtins.trace ''
|
|
hyprland-hidpi was removed. Please use the hyprland package.
|
|
For more information, refer to https://wiki.hyprland.org/Configuring/XWayland.
|
|
''
|
|
final.hyprland;
|
|
})
|
|
];
|
|
|
|
# Packages for extra software recommended for usage with Hyprland,
|
|
# including forked or patched packages for compatibility.
|
|
hyprland-extras = lib.composeManyExtensions [
|
|
inputs.xdph.overlays.xdg-desktop-portal-hyprland
|
|
];
|
|
}
|