mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 22:35:59 +01:00
nix: overlays: remove mkJoinedOverlays function
Closes #285 I introuced `mkJoinedOverlays` long ago, but we can use `lib.composeManyExtensions` instead. I am happy to remove it!
This commit is contained in:
parent
9c3a0ae72e
commit
9c6084bf47
1 changed files with 1 additions and 4 deletions
|
@ -5,9 +5,6 @@
|
||||||
}: let
|
}: let
|
||||||
ver = lib.removeSuffix "\n" (builtins.readFile ../VERSION);
|
ver = lib.removeSuffix "\n" (builtins.readFile ../VERSION);
|
||||||
|
|
||||||
mkJoinedOverlays = overlays: final: prev:
|
|
||||||
lib.foldl' (attrs: overlay: attrs // (overlay final prev)) {} overlays;
|
|
||||||
|
|
||||||
mkDate = longDate: (lib.concatStringsSep "-" [
|
mkDate = longDate: (lib.concatStringsSep "-" [
|
||||||
(builtins.substring 0 4 longDate)
|
(builtins.substring 0 4 longDate)
|
||||||
(builtins.substring 4 2 longDate)
|
(builtins.substring 4 2 longDate)
|
||||||
|
@ -16,7 +13,7 @@
|
||||||
|
|
||||||
version = ver + "+date=" + (mkDate (self.lastModifiedDate or "19700101")) + "_" + (self.shortRev or "dirty");
|
version = ver + "+date=" + (mkDate (self.lastModifiedDate or "19700101")) + "_" + (self.shortRev or "dirty");
|
||||||
in {
|
in {
|
||||||
default = mkJoinedOverlays (with self.overlays; [
|
default = lib.composeManyExtensions (with self.overlays; [
|
||||||
xdg-desktop-portal-hyprland
|
xdg-desktop-portal-hyprland
|
||||||
inputs.hyprlang.overlays.default
|
inputs.hyprlang.overlays.default
|
||||||
inputs.hyprland-protocols.overlays.default
|
inputs.hyprland-protocols.overlays.default
|
||||||
|
|
Loading…
Reference in a new issue