tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
prometheus: buildFlags{,Array} -> ldflags, tags
zowoq
4 years ago
4db0983a
7b2efac5
+9
-11
1 changed file
expand all
collapse all
unified
split
pkgs
servers
monitoring
prometheus
default.nix
+9
-11
pkgs/servers/monitoring/prometheus/default.nix
···
47
ln -s ${webui} web/ui/static/react
48
'';
49
50
-
buildFlags = "-tags=builtinassets";
51
-
buildFlagsArray =
0
52
let
53
t = "${goPackagePath}/vendor/github.com/prometheus/common/version";
54
in
55
[
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
-
''
65
];
66
67
# only run this in the real build, not during the vendor build
···
47
ln -s ${webui} web/ui/static/react
48
'';
49
50
+
tags = [ "builtinassets" ];
51
+
52
+
ldflags =
53
let
54
t = "${goPackagePath}/vendor/github.com/prometheus/common/version";
55
in
56
[
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}"
0
0
0
63
];
64
65
# only run this in the real build, not during the vendor build