Merge pull request #101416 from endocrimes/dani/tailscale-version

tailscale: Include version in build flags
This commit is contained in:
Graham Christensen 2020-10-23 09:47:28 -04:00 committed by GitHub
commit ad9c8e6f04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,6 +21,13 @@ 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}"
)
'';
postInstall = ''
wrapProgram $out/bin/tailscaled --prefix PATH : ${
lib.makeBinPath [ iproute iptables ]