anchor.diff:    excludedPackages = [ "tools" "docgen" ];
   
     ldflags =
  -    let t = "github.com/rancher/k3d/v5/version"; in
  -    [ "-s" "-w" "-X ${t}.Version=v${version}" "-X ${t}.K3sVersion=v${k3sVersion}" ];
  +    let t = "github.com/k3d-io/k3d/v5/version"; in
  +    [ "-s" "-w" "-X ${t}.Version=v${version}" ] ++ lib.optionals k3sVersionSet [ "-X ${t}.K3sVersion=v${k3sVersion}" ];
   
  -  doCheck = false;
  +   preCheck = ''
  +    # skip test that uses networking
  +    substituteInPlace version/version_test.go \
  +      --replace "TestGetK3sVersion" "SkipGetK3sVersion"
  +  '';
   
     postInstall = ''
       installShellCompletion --cmd k3d \
  
positive.code: { lib, buildGoModule, fetchFromGitHub, installShellFiles, k3sVersion ? "1.22.2-k3s2" }:
  
  buildGoModule rec {
    pname = "kube3d";
    version = "5.3.0";
  
    src = fetchFromGitHub {
      owner = "rancher";
      repo = "k3d";
      rev = "v${version}";
      sha256 = "sha256-ZuUjk1wb7iRZX+OpjLJHp1T0WYNjCHU6DpYF4V/heVc=";
    };
  
    vendorSha256 = null;
  
    nativeBuildInputs = [ installShellFiles ];
  
negative.code:     license = licenses.mit;
      maintainers = with maintainers; [ kuznero jlesquembre ngerstle jk ricochet ];
      platforms = platforms.linux ++ platforms.darwin;
      mainProgram = "k3d";
    };
  }
  