@ -91,10 +91,10 @@
# or the empty string when building from a local checkout of the
# or the empty string when building from a local checkout of the
# tailscale repo.
# tailscale repo.
tailscaleRev = if builtins . hasAttr " r e v " self then self . rev else " " ;
tailscaleRev = if builtins . hasAttr " r e v " self then self . rev else " " ;
# tailscale Unstable takes a nixpkgs package set, and builds
# tailscale takes a nixpkgs package set, and builds Tailscale from
# Tailscale from the same commit as this flake. IOW, it provides
# the same commit as this flake. IOW, it provides "tailscale built
# "tailscale built from HEAD", where HEAD is "whatever commit you
# from HEAD", where HEAD is "whatever commit you imported the
# imported the flake at".
# flake at".
#
#
# This is currently unfortunately brittle, because we have to
# This is currently unfortunately brittle, because we have to
# specify vendorSha256, and that sha changes any time we alter
# specify vendorSha256, and that sha changes any time we alter
@ -108,8 +108,8 @@
# 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 Unstable = pkgs : pkgs . buildGo119Module rec {
tailscale = pkgs : pkgs . buildGo119Module rec {
name = " t a i l s c a l e -u n s t a b l e ";
name = " t a i l s c a l e ";
src = ./. ;
src = ./. ;
vendorSha256 = fileContents ./go.mod.sri ;
vendorSha256 = fileContents ./go.mod.sri ;
@ -133,11 +133,11 @@
flakeForSystem = nixpkgs : system : let
flakeForSystem = nixpkgs : system : let
upstreamPkgs = nixpkgs . legacyPackages . ${ system } ;
upstreamPkgs = nixpkgs . legacyPackages . ${ system } ;
pkgs = pkgsWithTailscaleGo upstreamPkgs ;
pkgs = pkgsWithTailscaleGo upstreamPkgs ;
ts = tailscale Unstable pkgs ;
ts = tailscale pkgs ;
in {
in {
packages = {
packages = {
tailscale-go = pkgs . tailscale-go ;
tailscale-go = pkgs . tailscale-go ;
tailscale -unstable = ts ;
tailscale = ts ;
} ;
} ;
devShell = pkgs . mkShell {
devShell = pkgs . mkShell {
packages = with upstreamPkgs ; [
packages = with upstreamPkgs ; [