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
|
|
|
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 {
|
2024-10-28 03:26:16 +01:00
|
|
|
# List dependencies in ascending order with respect to usage (`foldr`).
|
2024-10-28 03:23:56 +01:00
|
|
|
default = lib.composeManyExtensions [
|
|
|
|
self.overlays.xdg-desktop-portal-hyprland
|
2024-10-28 03:26:16 +01:00
|
|
|
self.overlays.sdbus-cpp_2
|
2024-12-17 09:08:11 +01:00
|
|
|
self.overlays.hypr-gcc14Stdenv
|
2024-07-30 20:59:33 +02:00
|
|
|
inputs.hyprland-protocols.overlays.default
|
2024-09-20 19:01:12 +02:00
|
|
|
inputs.hyprwayland-scanner.overlays.default
|
2024-10-28 03:26:16 +01:00
|
|
|
inputs.hyprlang.overlays.default
|
|
|
|
inputs.hyprutils.overlays.default
|
2024-10-28 03:23:56 +01:00
|
|
|
];
|
2024-10-28 02:53:07 +01: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 {
|
2024-12-16 22:22:24 +01:00
|
|
|
stdenv = prev.gcc14Stdenv;
|
2024-07-05 17:47:46 +02:00
|
|
|
inherit (final.qt6) qtbase qttools wrapQtAppsHook qtwayland;
|
|
|
|
inherit version;
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
2024-10-22 19:45:24 +02:00
|
|
|
|
2024-10-28 02:53:07 +01:00
|
|
|
# If `prev` already contains `sdbus-cpp_2`, do not modify the package set.
|
|
|
|
# If the previous fixpoint does not contain the attribute,
|
|
|
|
# create a new package attribute, `sdbus-cpp_2` by overriding `sdbus-cpp`
|
|
|
|
# from `final` with the new version of `src`.
|
|
|
|
#
|
|
|
|
# This matches the naming/versioning scheme used in `nixos-unstable` as of writing (10-27-2024).
|
|
|
|
#
|
|
|
|
# This overlay can be applied to either a stable release of Nixpkgs, or any of the unstable branches.
|
|
|
|
# If you're using an unstable branch (or a release one) which already has `sdbus-cpp_2`,
|
|
|
|
# this overlay is effectively a wrapper of an identity function.
|
|
|
|
#
|
|
|
|
# TODO: Remove this overlay after the next stable Nixpkgs release.
|
|
|
|
sdbus-cpp_2 = final: prev: {
|
2024-12-17 09:08:11 +01:00
|
|
|
sdbus-cpp_2 =
|
|
|
|
prev.sdbus-cpp_2
|
|
|
|
or (final.sdbus-cpp.overrideAttrs (self: _: {
|
|
|
|
version = "2.0.0";
|
2024-10-22 19:45:24 +02:00
|
|
|
|
2024-12-17 09:08:11 +01:00
|
|
|
src = final.fetchFromGitHub {
|
|
|
|
owner = "Kistler-group";
|
|
|
|
repo = "sdbus-cpp";
|
|
|
|
rev = "v${self.version}";
|
|
|
|
hash = "sha256-W8V5FRhV3jtERMFrZ4gf30OpIQLYoj2yYGpnYOmH2+g=";
|
|
|
|
};
|
|
|
|
}));
|
|
|
|
};
|
|
|
|
|
|
|
|
# TODO: remove this when the next version of Hyprland is available (in Nixpkgs)
|
|
|
|
hypr-gcc14Stdenv = final: prev: {
|
|
|
|
hyprcursor = (prev.hyprcursor.override {stdenv = prev.gcc14Stdenv;}).overrideAttrs (self: super: {
|
2024-10-22 19:45:24 +02:00
|
|
|
src = final.fetchFromGitHub {
|
2024-12-17 09:08:11 +01:00
|
|
|
owner = "hyprwm";
|
|
|
|
repo = "hyprcursor";
|
|
|
|
rev = "f388aacd22be4a6e4d634fbaf6f75eb0713d239a";
|
|
|
|
hash = "sha256-+2bZJL2u5hva7rSp65OfKJBK+k03T6GB/NCvpoS1OOo=";
|
2024-10-22 19:45:24 +02:00
|
|
|
};
|
2024-12-17 09:08:11 +01:00
|
|
|
});
|
|
|
|
hyprlang = prev.hyprlang.override {stdenv = prev.gcc14Stdenv;};
|
|
|
|
hyprutil = prev.hyprutil.override {stdenv = prev.gcc14Stdenv;};
|
2024-10-22 19:45:24 +02:00
|
|
|
};
|
2023-08-09 23:22:51 +02:00
|
|
|
}
|