Skip to content

Commit

Permalink
nix: overlays: remove mkJoinedOverlays function
Browse files Browse the repository at this point in the history
Closes #285

I introuced `mkJoinedOverlays` long ago, but we can use
`lib.composeManyExtensions` instead. I am happy to remove it!
  • Loading branch information
spikespaz authored and fufexan committed Oct 29, 2024
1 parent 9c3a0ae commit 9c6084b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions nix/overlays.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
}: let
ver = lib.removeSuffix "\n" (builtins.readFile ../VERSION);

mkJoinedOverlays = overlays: final: prev:
lib.foldl' (attrs: overlay: attrs // (overlay final prev)) {} overlays;

mkDate = longDate: (lib.concatStringsSep "-" [
(builtins.substring 0 4 longDate)
(builtins.substring 4 2 longDate)
Expand All @@ -16,7 +13,7 @@

version = ver + "+date=" + (mkDate (self.lastModifiedDate or "19700101")) + "_" + (self.shortRev or "dirty");
in {
default = mkJoinedOverlays (with self.overlays; [
default = lib.composeManyExtensions (with self.overlays; [
xdg-desktop-portal-hyprland
inputs.hyprlang.overlays.default
inputs.hyprland-protocols.overlays.default
Expand Down

0 comments on commit 9c6084b

Please sign in to comment.