build(nix): refactor some code

This commit is contained in:
Yusuf Bera Ertan 2022-09-03 16:51:26 +03:00
parent 149763d54a
commit 8014730d64
No known key found for this signature in database
GPG Key ID: 1D8F8FAF2294D6EA

View File

@ -9,9 +9,9 @@
sourceInfo = inputs.self.sourceInfo;
dateTimeFormat = import ./nix/dateTimeFormat.nix;
dateTime = dateTimeFormat sourceInfo.lastModified;
rev = sourceInfo.rev or "dirty";
shortRev = sourceInfo.shortRev or "dirty";
in {
prettyRev = (builtins.substring 0 8 rev) + "/" + dateTime;
prettyRev = shortRev + "/" + dateTime;
tag = "";
};
outputs = inputs.nci.lib.makeOutputs {