mirror of
https://github.com/hyprwm/hyprland-qt-support.git
synced 2025-05-12 21:20:35 +01:00
23 lines
597 B
Nix
23 lines
597 B
Nix
{
|
|
inputs,
|
|
self,
|
|
lib,
|
|
}: let
|
|
mkDate = longDate: (lib.concatStringsSep "-" [
|
|
(builtins.substring 0 4 longDate)
|
|
(builtins.substring 4 2 longDate)
|
|
(builtins.substring 6 2 longDate)
|
|
]);
|
|
date = mkDate (self.lastModifiedDate or "19700101");
|
|
version = lib.removeSuffix "\n" (builtins.readFile ../VERSION);
|
|
in {
|
|
default = self.overlays.hyprland-qt-support;
|
|
|
|
hyprland-qt-support = lib.composeManyExtensions [
|
|
(final: prev: {
|
|
hyprland-qt-support = final.callPackage ./. {
|
|
version = "${version}+date=${date}_${self.shortRev or "dirty"}";
|
|
};
|
|
})
|
|
];
|
|
}
|