mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
build(nix): refactor some code
This commit is contained in:
parent
149763d54a
commit
8014730d64
@ -9,9 +9,9 @@
|
|||||||
sourceInfo = inputs.self.sourceInfo;
|
sourceInfo = inputs.self.sourceInfo;
|
||||||
dateTimeFormat = import ./nix/dateTimeFormat.nix;
|
dateTimeFormat = import ./nix/dateTimeFormat.nix;
|
||||||
dateTime = dateTimeFormat sourceInfo.lastModified;
|
dateTime = dateTimeFormat sourceInfo.lastModified;
|
||||||
rev = sourceInfo.rev or "dirty";
|
shortRev = sourceInfo.shortRev or "dirty";
|
||||||
in {
|
in {
|
||||||
prettyRev = (builtins.substring 0 8 rev) + "/" + dateTime;
|
prettyRev = shortRev + "/" + dateTime;
|
||||||
tag = "";
|
tag = "";
|
||||||
};
|
};
|
||||||
outputs = inputs.nci.lib.makeOutputs {
|
outputs = inputs.nci.lib.makeOutputs {
|
||||||
|
Loading…
Reference in New Issue
Block a user