2024-02-17 22:06:07 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
inputs,
|
|
|
|
}: let
|
|
|
|
mkDate = longDate: (lib.concatStringsSep "-" [
|
|
|
|
(builtins.substring 0 4 longDate)
|
|
|
|
(builtins.substring 4 2 longDate)
|
|
|
|
(builtins.substring 6 2 longDate)
|
|
|
|
]);
|
|
|
|
in {
|
2024-02-29 14:09:56 +01:00
|
|
|
default = inputs.self.overlays.hypridle;
|
|
|
|
|
|
|
|
hypridle = lib.composeManyExtensions [
|
2024-02-17 22:06:07 +01:00
|
|
|
inputs.hyprlang.overlays.default
|
2024-07-16 21:41:40 +02:00
|
|
|
inputs.hyprutils.overlays.default
|
2024-02-17 22:06:07 +01:00
|
|
|
(final: prev: {
|
|
|
|
hypridle = prev.callPackage ./default.nix {
|
|
|
|
stdenv = prev.gcc13Stdenv;
|
|
|
|
version = "0.pre" + "+date=" + (mkDate (inputs.self.lastModifiedDate or "19700101")) + "_" + (inputs.self.shortRev or "dirty");
|
|
|
|
inherit (final) hyprlang;
|
|
|
|
};
|
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|