@ -41,14 +41,6 @@
} ;
} ;
outputs = { self , nixpkgs , flake-utils , flake-compat }: let
outputs = { self , nixpkgs , flake-utils , flake-compat }: let
# Grab a helper func out of the Nix language libraries. Annoyingly
# these are only accessible through legacyPackages right now,
# which forces us to indirect through a platform-specific
# path. The x86_64-linux in here doesn't really matter, since all
# we're grabbing is a pure Nix string manipulation function that
# doesn't build any software.
fileContents = nixpkgs . legacyPackages . x86_64-linux . lib . fileContents ;
# tailscaleRev is the git commit at which this flake was imported,
# tailscaleRev is the git commit at which this flake was imported,
# 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.
@ -74,7 +66,7 @@
name = " t a i l s c a l e " ;
name = " t a i l s c a l e " ;
src = ./. ;
src = ./. ;
vendorSha256 = fileContents ./go.mod.sri ;
vendorSha256 = pkgs. lib . fileContents ./go.mod.sri ;
nativeBuildInputs = pkgs . lib . optionals pkgs . stdenv . isLinux [ pkgs . makeWrapper pkgs . git ] ;
nativeBuildInputs = pkgs . lib . optionals pkgs . stdenv . isLinux [ pkgs . makeWrapper pkgs . git ] ;
ldflags = [ " - X t a i l s c a l e . c o m / v e r s i o n . G i t C o m m i t = ${ tailscaleRev } " ] ;
ldflags = [ " - X t a i l s c a l e . c o m / v e r s i o n . G i t C o m m i t = ${ tailscaleRev } " ] ;
CGO_ENABLED = 0 ;
CGO_ENABLED = 0 ;