2024-02-19 00:50:56 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
}: let
|
|
|
|
mkDate = longDate: (lib.concatStringsSep "-" [
|
|
|
|
(builtins.substring 0 4 longDate)
|
|
|
|
(builtins.substring 4 2 longDate)
|
|
|
|
(builtins.substring 6 2 longDate)
|
|
|
|
]);
|
2024-07-18 19:45:42 +02:00
|
|
|
|
|
|
|
version = lib.removeSuffix "\n" (builtins.readFile ../VERSION);
|
2024-02-19 00:50:56 +01:00
|
|
|
in {
|
2024-02-29 14:13:35 +01:00
|
|
|
default = inputs.self.overlays.hyprlock;
|
|
|
|
|
|
|
|
hyprlock = lib.composeManyExtensions [
|
2024-11-28 17:16:37 +01:00
|
|
|
inputs.hyprgraphics.overlays.default
|
2024-02-19 00:50:56 +01:00
|
|
|
inputs.hyprlang.overlays.default
|
2024-06-08 23:49:49 +02:00
|
|
|
inputs.hyprutils.overlays.default
|
2024-10-22 02:08:24 +02:00
|
|
|
inputs.self.overlays.sdbuscpp
|
2024-02-19 00:50:56 +01:00
|
|
|
(final: prev: {
|
|
|
|
hyprlock = prev.callPackage ./default.nix {
|
|
|
|
stdenv = prev.gcc13Stdenv;
|
2024-07-18 19:45:42 +02:00
|
|
|
version = version + "+date=" + (mkDate (inputs.self.lastModifiedDate or "19700101")) + "_" + (inputs.self.shortRev or "dirty");
|
2024-02-19 00:50:56 +01:00
|
|
|
inherit (final) hyprlang;
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
2024-10-22 02:08:24 +02:00
|
|
|
|
|
|
|
sdbuscpp = final: prev: {
|
|
|
|
sdbus-cpp = prev.sdbus-cpp.overrideAttrs (self: super: {
|
|
|
|
version = "2.0.0";
|
|
|
|
|
|
|
|
src = final.fetchFromGitHub {
|
|
|
|
owner = "Kistler-group";
|
|
|
|
repo = "sdbus-cpp";
|
|
|
|
rev = "refs/tags/v${self.version}";
|
|
|
|
hash = "sha256-W8V5FRhV3jtERMFrZ4gf30OpIQLYoj2yYGpnYOmH2+g=";
|
|
|
|
};
|
|
|
|
});
|
|
|
|
};
|
2024-02-19 00:50:56 +01:00
|
|
|
}
|