mirror of
https://github.com/hyprwm/hyprpolkitagent.git
synced 2024-11-24 10:25:59 +01:00
26 lines
659 B
Nix
26 lines
659 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.hyprpolkitagent;
|
||
|
|
||
|
hyprpolkitagent = lib.composeManyExtensions [
|
||
|
inputs.hyprutils.overlays.default
|
||
|
(final: prev: {
|
||
|
hyprpolkitagent = final.callPackage ./. {
|
||
|
stdenv = final.gcc14Stdenv;
|
||
|
version = "${version}+date=${date}_${self.shortRev or "dirty"}";
|
||
|
};
|
||
|
})
|
||
|
];
|
||
|
}
|