alertmanager-bot: buildFlagsArray -> ldflags

This commit is contained in:
zowoq 2021-08-20 17:12:14 +10:00
parent addcba2e25
commit f058b02a17

View File

@ -17,11 +17,9 @@ buildGoModule rec {
sed "s;/templates/default.tmpl;$out/share&;" -i cmd/alertmanager-bot/main.go sed "s;/templates/default.tmpl;$out/share&;" -i cmd/alertmanager-bot/main.go
''; '';
preBuild = '' ldflags = [
export buildFlagsArray=( "-s" "-w" "-X main.Version=v${version}" "-X main.Revision=${src.rev}"
"-ldflags=-s -w -X main.Version=v${version} -X main.Revision=${src.rev}" ];
)
'';
postInstall = '' postInstall = ''
install -Dm644 -t $out/share/templates $src/default.tmpl install -Dm644 -t $out/share/templates $src/default.tmpl