mirror of
https://github.com/hyprwm/hypridle.git
synced 2024-11-16 23:25:58 +01:00
21 lines
575 B
Nix
21 lines
575 B
Nix
{
|
|
lib,
|
|
inputs,
|
|
}: let
|
|
mkDate = longDate: (lib.concatStringsSep "-" [
|
|
(builtins.substring 0 4 longDate)
|
|
(builtins.substring 4 2 longDate)
|
|
(builtins.substring 6 2 longDate)
|
|
]);
|
|
in {
|
|
default = lib.composeManyExtensions [
|
|
inputs.hyprlang.overlays.default
|
|
(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;
|
|
};
|
|
})
|
|
];
|
|
}
|