tailscale: buildFlagsArray -> ldflags, tags
This commit is contained in:
parent
0e50afedc1
commit
a6b80311eb
1 changed files with 3 additions and 6 deletions
|
@ -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 : ${
|
||||
|
|
Loading…
Reference in a new issue