overlays: improve mkVersion
Add dash to mkVersionInput Add mkVersionSrc for normal src.
This commit is contained in:
parent
05631f016d
commit
8f6650bbd1
1 changed files with 2 additions and 1 deletions
|
@ -5,7 +5,8 @@ let
|
||||||
(builtins.substring 4 2 longDate)
|
(builtins.substring 4 2 longDate)
|
||||||
(builtins.substring 6 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
|
in
|
||||||
{
|
{
|
||||||
agenix = inputs.agenix.packages.${prev.system}.default;
|
agenix = inputs.agenix.packages.${prev.system}.default;
|
||||||
|
|
Loading…
Reference in a new issue