mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 22:03:54 +03:00
Merge pull request #101416 from endocrimes/dani/tailscale-version
tailscale: Include version in build flags
This commit is contained in:
commit
ad9c8e6f04
@ -21,6 +21,13 @@ buildGoModule rec {
|
|||||||
|
|
||||||
subPackages = [ "cmd/tailscale" "cmd/tailscaled" ];
|
subPackages = [ "cmd/tailscale" "cmd/tailscaled" ];
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
export buildFlagsArray=(
|
||||||
|
-tags="xversion"
|
||||||
|
-ldflags="-X tailscale.com/version.LONG=${version} -X tailscale.com/version.SHORT=${version}"
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/tailscaled --prefix PATH : ${
|
wrapProgram $out/bin/tailscaled --prefix PATH : ${
|
||||||
lib.makeBinPath [ iproute iptables ]
|
lib.makeBinPath [ iproute iptables ]
|
||||||
|
Loading…
Reference in New Issue
Block a user