Files
tailscale/shell.nix
Brad Fitzpatrick 2dad003b2d all: import encoding/json/v2 from the standard library
As of Go 1.27, encoding/json/v2 and encoding/json/jsontext are in the
standard library, and github.com/go-json-experiment/json and its
jsontext package are just aliases for them.

Make cmd/jsonimports rewrite go-json-experiment imports to the standard
library instead of the other way around, keeping the jsonv1 and jsonv2
import names, and leave generated files alone. Make cmd/viewer generate
standard library imports, and update everything that imported
go-json-experiment, so no binary links it anymore.

Updates #22811

Change-Id: I4b725434dca9703e6ca0ad30ce94db03919a343f
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2026-12-04 20:40:12 -08:00

20 lines
788 B
Nix

# This is a shell.nix file used to describe the environment that
# tailscale needs for development.
#
# For more information about this and why this file is useful, see here:
# https://nixos.org/guides/nix-pills/developing-with-nix-shell.html
#
# Also look into direnv: https://direnv.net/, this can make it so that you can
# automatically get your environment set up when you change folders into the
# project.
(import (
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
in fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash; }
) {
src = ./.;
}).shellNix
# nix-direnv cache busting line: sha256-XMzcDXtI+Nag9S9B8qjPuGBV0yO/L5cdMhrVR8IHyC0=