aboutsummaryrefslogtreecommitdiffhomepage
path: root/nix/overlays.nix
diff options
context:
space:
mode:
authorGrizzlT <[email protected]>2024-01-28 21:33:34 +0100
committerMihai Fufezan <[email protected]>2024-01-29 00:27:51 +0200
commit7009dc9184317b7c68032fd733dfed268bc6c543 (patch)
treee20f14cf9b7c4ff37021ff2468fc3c0e4108d228 /nix/overlays.nix
parentb7840c646113af8c14e6e984a6cd29cc812af13f (diff)
downloadHyprland-7009dc9184317b7c68032fd733dfed268bc6c543.tar.gz
Hyprland-7009dc9184317b7c68032fd733dfed268bc6c543.zip
nix: fix overlay composition
Diffstat (limited to 'nix/overlays.nix')
-rw-r--r--nix/overlays.nix11
1 files changed, 4 insertions, 7 deletions
diff --git a/nix/overlays.nix b/nix/overlays.nix
index 5eb7b082..afdde162 100644
--- a/nix/overlays.nix
+++ b/nix/overlays.nix
@@ -10,19 +10,16 @@
(builtins.substring 4 2 longDate)
(builtins.substring 6 2 longDate)
]);
-
- mkJoinedOverlays = overlays: final: prev:
- lib.foldl' (attrs: overlay: attrs // (overlay final prev)) {} overlays;
in {
# Contains what a user is most likely to care about:
# Hyprland itself, XDPH and the Share Picker.
- default = mkJoinedOverlays (with self.overlays; [
+ default = lib.composeManyExtensions (with self.overlays; [
hyprland-packages
hyprland-extras
]);
# Packages for variations of Hyprland, dependencies included.
- hyprland-packages = mkJoinedOverlays [
+ hyprland-packages = lib.composeManyExtensions [
# Dependencies
inputs.hyprland-protocols.overlays.default
self.overlays.wlroots-hyprland
@@ -34,7 +31,7 @@ in {
hyprland = final.callPackage ./default.nix {
stdenv = final.gcc13Stdenv;
version = "${props.version}+date=${date}_${self.shortRev or "dirty"}";
- wlroots = final.wlroots-hyprland;
+ wlroots = prev.wlroots-hyprland;
commit = self.rev or "";
inherit (final) udis86 hyprland-protocols;
inherit date;
@@ -59,7 +56,7 @@ in {
# Packages for extra software recommended for usage with Hyprland,
# including forked or patched packages for compatibility.
- hyprland-extras = mkJoinedOverlays [
+ hyprland-extras = lib.composeManyExtensions [
inputs.xdph.overlays.xdg-desktop-portal-hyprland
];