@ -67,7 +67,7 @@
# nixpkgs style imports and flake semantics, unless upstream
# nixpkgs style imports and flake semantics, unless upstream
# nixpkgs exposes the buildGoModule constructor func explicitly.
# nixpkgs exposes the buildGoModule constructor func explicitly.
pkgsWithTailscaleGo = pkgs : pkgs . extend ( final : prev : rec {
pkgsWithTailscaleGo = pkgs : pkgs . extend ( final : prev : rec {
tailscale_go = prev . lib . overrideDerivation prev . go_1_ 19 ( attrs : rec {
tailscale_go = prev . lib . overrideDerivation prev . go_1_ 20 ( attrs : rec {
name = " t a i l s c a l e - g o - ${ version } " ;
name = " t a i l s c a l e - g o - ${ version } " ;
version = tailscale-go-rev ;
version = tailscale-go-rev ;
src = pkgs . fetchFromGitHub {
src = pkgs . fetchFromGitHub {
@ -82,9 +82,9 @@
checkPhase = " " ;
checkPhase = " " ;
TAILSCALE_TOOLCHAIN_REV = tailscale-go-rev ;
TAILSCALE_TOOLCHAIN_REV = tailscale-go-rev ;
} ) ;
} ) ;
# Override go_1_ 19 so that buildGo119 Module below uses
# Override go_1_ 20 so that buildGo120 Module below uses
# tailscale's toolchain as well.
# tailscale's toolchain as well.
go_1_ 19 = tailscale_go ;
go_1_ 20 = tailscale_go ;
} ) ;
} ) ;
# tailscaleRev is the git commit at which this flake was imported,
# tailscaleRev is the git commit at which this flake was imported,
@ -108,7 +108,7 @@
# So really, this flake is for tailscale devs to dogfood with, if
# So really, this flake is for tailscale devs to dogfood with, if
# you're an end user you should be prepared for this flake to not
# you're an end user you should be prepared for this flake to not
# build periodically.
# build periodically.
tailscale = pkgs : pkgs . buildGo1 19 Module rec {
tailscale = pkgs : pkgs . buildGo1 20 Module rec {
name = " t a i l s c a l e " ;
name = " t a i l s c a l e " ;
src = ./. ;
src = ./. ;