grafana-loki: add buildinfo
Otherwise, no version output is shown with `--version` or during log messages.
This commit is contained in:
parent
28c0ac19db
commit
89aba1d889
|
@ -26,6 +26,10 @@ buildGoModule rec {
|
|||
|
||||
passthru.tests = { inherit (nixosTests) loki; };
|
||||
|
||||
buildFlagsArray = let t = "github.com/grafana/loki/pkg/build"; in ''
|
||||
-ldflags=-s -w -X ${t}.Version=${version} -X ${t}.BuildUser=nix@nixpkgs -X ${t}.BuildDate=unknown -X ${t}.Branch=unknown -X ${t}.Revision=unknown
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Reference in a new issue