Commit Graph

2 Commits

Author SHA1 Message Date
sternenseemann
81c46ad9e8 chroma: 0.9.4 -> 0.10.0 2022-01-30 14:54:39 +01:00
sternenseemann
2174bfe675 chroma: use -X ldflag to do variable substitution in cmd/chroma
Previously this was done rather hackily using substituteInPlace in
postFetch, however I've since found out that the way goreleaser does it
is actually quite accessible, since it just calls go with the
appropriate -X flags.

To avoid having to call git in the build to obtain the values and to not
rely on leaveDotGit, we can use the JSON populated by nix-prefetch-git
which contains the extra information we need: the commit hash and the
date.
2021-11-03 10:40:23 +01:00