git.iko.soy/typeable/nixpkgs
on master help sign in
prometheus: buildFlags{,Array} -> ldflags, tags
commit4db0983ae49122e31b6eb8387154e397b4269d12 authorzowoq <59103226+zowoq@users.noreply.github.com> dateSun 8 Aug 2021, 10:11 (5 years ago) parent7b2efac
1 file changed+9−11
pkgs/servers/monitoring/prometheus/default.nix+9−11
pkgs/servers/monitoring/prometheus/default.nix+9−11
@@ -47,21 +47,19 @@ buildGoModule rec {
4747 ln -s ${webui} web/ui/static/react
4848 '';
4949
50− buildFlags = "-tags=builtinassets";
51− buildFlagsArray =
50+ tags = [ "builtinassets" ];
51+
52+ ldflags =
5253 let
5354 t = "${goPackagePath}/vendor/github.com/prometheus/common/version";
5455 in
5556 [
56− ''
57− -ldflags=
58− -X ${t}.Version=${version}
59− -X ${t}.Revision=unknown
60− -X ${t}.Branch=unknown
61− -X ${t}.BuildUser=nix@nixpkgs
62− -X ${t}.BuildDate=unknown
63− -X ${t}.GoVersion=${lib.getVersion go}
64− ''
57+ "-X ${t}.Version=${version}"
58+ "-X ${t}.Revision=unknown"
59+ "-X ${t}.Branch=unknown"
60+ "-X ${t}.BuildUser=nix@nixpkgs"
61+ "-X ${t}.BuildDate=unknown"
62+ "-X ${t}.GoVersion=${lib.getVersion go}"
6563 ];
6664
6765 # only run this in the real build, not during the vendor build