hyprland-qtutils/nix/overlays.nix

26 lines
662 B
Nix
Raw Normal View History

2024-10-27 16:01:02 +01:00
{
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-qtutils;
hyprland-qtutils = lib.composeManyExtensions [
inputs.hyprutils.overlays.default
(final: prev: {
hyprland-qtutils = final.callPackage ./. {
stdenv = final.gcc14Stdenv;
version = "${version}+date=${date}_${self.shortRev or "dirty"}";
};
})
];
}