2023-05-02 19:54:29 +02:00
|
|
|
{
|
|
|
|
self,
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
}: let
|
|
|
|
mkDate = longDate: (lib.concatStringsSep "-" [
|
|
|
|
(builtins.substring 0 4 longDate)
|
|
|
|
(builtins.substring 4 2 longDate)
|
|
|
|
(builtins.substring 6 2 longDate)
|
|
|
|
]);
|
2024-07-18 20:27:03 +02:00
|
|
|
version = lib.removeSuffix "\n" (builtins.readFile ../VERSION);
|
2023-05-02 19:54:29 +02:00
|
|
|
in {
|
2023-08-12 14:22:37 +02:00
|
|
|
# Contains what a user is most likely to care about:
|
2023-08-21 14:34:37 +02:00
|
|
|
# Hyprland itself, XDPH and the Share Picker.
|
2024-01-28 21:33:34 +01:00
|
|
|
default = lib.composeManyExtensions (with self.overlays; [
|
2023-08-12 14:22:37 +02:00
|
|
|
hyprland-packages
|
|
|
|
hyprland-extras
|
|
|
|
]);
|
2023-05-02 19:54:29 +02:00
|
|
|
|
2023-08-12 14:22:37 +02:00
|
|
|
# Packages for variations of Hyprland, dependencies included.
|
2024-01-28 21:33:34 +01:00
|
|
|
hyprland-packages = lib.composeManyExtensions [
|
2023-08-12 14:22:37 +02:00
|
|
|
# Dependencies
|
2024-07-21 13:09:54 +02:00
|
|
|
inputs.aquamarine.overlays.default
|
2024-03-09 17:52:59 +01:00
|
|
|
inputs.hyprcursor.overlays.default
|
2024-09-22 20:19:09 +02:00
|
|
|
inputs.hyprland-protocols.overlays.default
|
2024-02-18 16:00:34 +01:00
|
|
|
inputs.hyprlang.overlays.default
|
2024-06-11 17:17:45 +02:00
|
|
|
inputs.hyprutils.overlays.default
|
2024-04-20 14:25:29 +02:00
|
|
|
inputs.hyprwayland-scanner.overlays.default
|
2024-09-22 20:20:35 +02:00
|
|
|
self.overlays.udis86
|
2024-04-21 18:58:54 +02:00
|
|
|
|
2023-08-12 14:22:37 +02:00
|
|
|
# Hyprland packages themselves
|
2024-10-07 20:49:19 +02:00
|
|
|
(final: _prev: let
|
2023-12-17 15:29:58 +01:00
|
|
|
date = mkDate (self.lastModifiedDate or "19700101");
|
|
|
|
in {
|
2023-08-12 14:22:37 +02:00
|
|
|
hyprland = final.callPackage ./default.nix {
|
2024-08-08 11:54:41 +02:00
|
|
|
stdenv = final.gcc14Stdenv;
|
2024-07-18 20:27:03 +02:00
|
|
|
version = "${version}+date=${date}_${self.shortRev or "dirty"}";
|
2023-08-12 14:22:37 +02:00
|
|
|
commit = self.rev or "";
|
2024-07-21 19:54:57 +02:00
|
|
|
revCount = self.sourceInfo.revCount or "";
|
2023-12-17 15:29:58 +01:00
|
|
|
inherit date;
|
2023-08-12 14:22:37 +02:00
|
|
|
};
|
2024-03-15 09:11:54 +01:00
|
|
|
hyprland-unwrapped = final.hyprland.override {wrapRuntimeDeps = false;};
|
2024-11-07 09:52:12 +01:00
|
|
|
|
|
|
|
# Build major libs with debug to get as much info as possible in a stacktrace
|
|
|
|
hyprland-debug = final.hyprland.override {
|
|
|
|
aquamarine = final.aquamarine.override {debug = true;};
|
|
|
|
hyprutils = final.hyprutils.override {debug = true;};
|
|
|
|
debug = true;
|
|
|
|
};
|
2023-12-17 15:29:58 +01:00
|
|
|
hyprland-legacy-renderer = final.hyprland.override {legacyRenderer = true;};
|
2024-04-21 18:58:54 +02:00
|
|
|
|
|
|
|
# deprecated packages
|
2023-11-26 03:58:57 +01:00
|
|
|
hyprland-nvidia =
|
|
|
|
builtins.trace ''
|
|
|
|
hyprland-nvidia was removed. Please use the hyprland package.
|
|
|
|
Nvidia patches are no longer needed.
|
|
|
|
''
|
|
|
|
final.hyprland;
|
2024-04-21 18:58:54 +02:00
|
|
|
|
2023-08-01 22:58:01 +02:00
|
|
|
hyprland-hidpi =
|
|
|
|
builtins.trace ''
|
|
|
|
hyprland-hidpi was removed. Please use the hyprland package.
|
|
|
|
For more information, refer to https://wiki.hyprland.org/Configuring/XWayland.
|
|
|
|
''
|
2023-08-12 14:22:37 +02:00
|
|
|
final.hyprland;
|
|
|
|
})
|
|
|
|
];
|
2023-05-02 19:54:29 +02:00
|
|
|
|
|
|
|
# Packages for extra software recommended for usage with Hyprland,
|
|
|
|
# including forked or patched packages for compatibility.
|
2024-01-28 21:33:34 +01:00
|
|
|
hyprland-extras = lib.composeManyExtensions [
|
2024-11-04 18:43:23 +01:00
|
|
|
inputs.xdph.overlays.default
|
2023-05-02 19:54:29 +02:00
|
|
|
];
|
2024-09-22 20:20:35 +02:00
|
|
|
|
|
|
|
# udis86 from nixpkgs is too old, and also does not provide a .pc file
|
|
|
|
# this version is the one used in the git submodule, and allows us to
|
|
|
|
# fetch the source without '?submodules=1'
|
|
|
|
udis86 = final: prev: {
|
2024-10-07 20:49:19 +02:00
|
|
|
udis86-hyprland = prev.udis86.overrideAttrs (_self: _super: {
|
2024-09-22 20:20:35 +02:00
|
|
|
src = final.fetchFromGitHub {
|
|
|
|
owner = "canihavesomecoffee";
|
|
|
|
repo = "udis86";
|
|
|
|
rev = "5336633af70f3917760a6d441ff02d93477b0c86";
|
|
|
|
hash = "sha256-HifdUQPGsKQKQprByeIznvRLONdOXeolOsU5nkwIv3g=";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [];
|
|
|
|
});
|
|
|
|
};
|
2023-05-02 19:54:29 +02:00
|
|
|
}
|