tailscale: buildFlagsArray -> ldflags, tags

This commit is contained in:
zowoq 2021-08-07 12:28:40 +10:00
parent 0e50afedc1
commit a6b80311eb

View file

@ -21,12 +21,9 @@ buildGoModule rec {
subPackages = [ "cmd/tailscale" "cmd/tailscaled" ];
preBuild = ''
export buildFlagsArray=(
-tags="xversion"
-ldflags="-X tailscale.com/version.Long=${version} -X tailscale.com/version.Short=${version}"
)
'';
tags = [ "xversion" ];
ldflags = [ "-X tailscale.com/version.Long=${version}" "-X tailscale.com/version.Short=${version}" ];
postInstall = ''
wrapProgram $out/bin/tailscaled --prefix PATH : ${