2023-08-09 23:22:51 +02:00
|
|
|
{
|
|
|
|
self,
|
|
|
|
inputs,
|
|
|
|
lib,
|
|
|
|
}: let
|
2023-09-06 20:36:48 +02:00
|
|
|
ver = lib.removeSuffix "\n" (builtins.readFile ../VERSION);
|
|
|
|
|
2023-08-09 23:22:51 +02:00
|
|
|
mkJoinedOverlays = overlays: final: prev:
|
|
|
|
lib.foldl' (attrs: overlay: attrs // (overlay final prev)) {} overlays;
|
2023-09-06 20:36:48 +02:00
|
|
|
|
2023-08-09 23:22:51 +02:00
|
|
|
mkDate = longDate: (lib.concatStringsSep "-" [
|
|
|
|
(builtins.substring 0 4 longDate)
|
|
|
|
(builtins.substring 4 2 longDate)
|
|
|
|
(builtins.substring 6 2 longDate)
|
|
|
|
]);
|
2023-09-06 20:36:48 +02:00
|
|
|
|
|
|
|
version = ver + "+date=" + (mkDate (self.lastModifiedDate or "19700101")) + "_" + (self.shortRev or "dirty");
|
2023-08-09 23:22:51 +02:00
|
|
|
in {
|
|
|
|
default = mkJoinedOverlays (with self.overlays; [
|
|
|
|
xdg-desktop-portal-hyprland
|
2024-07-30 20:59:33 +02:00
|
|
|
inputs.hyprlang.overlays.default
|
|
|
|
inputs.hyprland-protocols.overlays.default
|
2024-09-20 16:27:10 +02:00
|
|
|
inputs.hyprutils.overlays.default
|
|
|
|
inputs.hyprwayland-scanner.overlays.default
|
2023-08-09 23:22:51 +02:00
|
|
|
]);
|
2024-07-05 17:47:46 +02:00
|
|
|
xdg-desktop-portal-hyprland = lib.composeManyExtensions [
|
|
|
|
(final: prev: {
|
|
|
|
xdg-desktop-portal-hyprland = final.callPackage ./default.nix {
|
|
|
|
stdenv = prev.gcc13Stdenv;
|
|
|
|
inherit (final.qt6) qtbase qttools wrapQtAppsHook qtwayland;
|
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
2023-08-09 23:22:51 +02:00
|
|
|
}
|