xdg-desktop-portal-hyprland/nix/overlays.nix

32 lines
955 B
Nix
Raw Permalink Normal View History

{
self,
inputs,
lib,
}: let
2023-09-06 20:36:48 +02:00
ver = lib.removeSuffix "\n" (builtins.readFile ../VERSION);
mkJoinedOverlays = overlays: final: prev:
lib.foldl' (attrs: overlay: attrs // (overlay final prev)) {} overlays;
2023-09-06 20:36:48 +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");
in {
default = mkJoinedOverlays (with self.overlays; [
xdg-desktop-portal-hyprland
]);
xdg-desktop-portal-hyprland = final: prev: {
xdg-desktop-portal-hyprland = final.callPackage ./default.nix {
2023-09-06 20:36:48 +02:00
stdenv = prev.gcc13Stdenv;
inherit (final) hyprland-protocols;
inherit (final.qt6) qtbase qttools wrapQtAppsHook qtwayland;
2023-09-06 20:36:48 +02:00
inherit version;
2024-01-03 16:24:17 +01:00
inherit (inputs.hyprlang.packages.${prev.system}) hyprlang;
2023-09-06 20:36:48 +02:00
};
};
}