overlays: improve mkVersion

Add dash to mkVersionInput
Add mkVersionSrc for normal src.
dev-docs
Moritz Böhme 2023-03-02 09:15:09 +01:00
parent 05631f016d
commit 8f6650bbd1
Signed by: moritz
GPG Key ID: 970C6E89EB0547A9
1 changed files with 2 additions and 1 deletions

View File

@ -5,7 +5,8 @@ let
(builtins.substring 4 2 longDate)
(builtins.substring 6 2 longDate)
]);
mkVersionInput = input: "unstable" + mkDate (input.lastModifiedDate or "19700101") + "_" + (input.shortRev or "dirty");
mkVersionSrc = src: "unstable-" + builtins.substring 0 7 src.rev;
mkVersionInput = input: "unstable-" + mkDate (input.lastModifiedDate or "19700101") + "_" + (input.shortRev or "dirty");
in
{
agenix = inputs.agenix.packages.${prev.system}.default;