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
|
|
|
|
hyprland-share-picker
|
2023-09-06 20:36:48 +02:00
|
|
|
package-overrides
|
2023-08-09 23:22:51 +02:00
|
|
|
]);
|
|
|
|
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;
|
2023-08-09 23:22:51 +02:00
|
|
|
inherit (final) hyprland-protocols hyprland-share-picker;
|
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
hyprland-share-picker = final: prev: {
|
2023-09-06 20:36:48 +02:00
|
|
|
hyprland-share-picker = final.callPackage ./hyprland-share-picker.nix {
|
|
|
|
inherit (final.qt6) qtbase wrapQtAppsHook qtwayland;
|
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
package-overrides = final: prev: {
|
|
|
|
sdbus-cpp = prev.sdbus-cpp.overrideAttrs (self: super: {
|
|
|
|
version = "1.3.0";
|
|
|
|
src = prev.fetchFromGitHub {
|
|
|
|
repo = "sdbus-cpp";
|
|
|
|
owner = "Kistler-Group";
|
|
|
|
rev = "v${self.version}";
|
|
|
|
hash = "sha256-S/8/I2wmWukpP+RGPxKbuO44wIExzeYZL49IO+KOqg4=";
|
|
|
|
};
|
|
|
|
});
|
2023-08-09 23:22:51 +02:00
|
|
|
};
|
|
|
|
}
|