nixpkgs/pkgs/tools/text/chroma
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
..
default.nix chroma: use -X ldflag to do variable substitution in cmd/chroma 2021-11-03 10:40:23 +01:00
src.json chroma: use -X ldflag to do variable substitution in cmd/chroma 2021-11-03 10:40:23 +01:00