anchor.diff:      "-s" "-w" "-X main.version=${version}"
     ];
   
  +  # Tests start http servers which need to bind to local addresses:
  +  # panic: httptest: failed to listen on a port: listen tcp6 [::1]:0: bind: operation not permitted
  +  __darwinAllowLocalNetworking = true;
  +
  +  # On Darwin, files under /usr/share/zoneinfo exist, but fail to open in sandbox:
  +  # TestValueAsTimezone: date_formats_test.go:33: Invalid has err for input "Europe/Amsterdam": operation not permitted
  +  preCheck = ''
  +    export ZONEINFO=${tzdata}/share/zoneinfo
  +  '';
  +
     postInstall = ''
       tar -xvf $srcStatic
       mkdir -p $out/share/grafana
  
positive.code: { lib, buildGoModule, fetchurl, fetchFromGitHub, nixosTests }:
  
  buildGoModule rec {
    pname = "grafana";
  
negative.code:     license = licenses.agpl3;
      homepage = "https://grafana.com";
      maintainers = with maintainers; [ offline fpletz willibutz globin ma27 Frostman ];
      platforms = platforms.linux ++ platforms.darwin;
    };
  }
  