1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "cloud-sql-proxy";
5 version = "1.27.0";
6
7 src = fetchFromGitHub {
8 owner = "GoogleCloudPlatform";
9 repo = "cloudsql-proxy";
10 rev = "v${version}";
11 sha256 = "sha256-x44nG5M2ycBaf/Fbw5crmAV//yv/WtIYbTjJ7/6TnoI=";
12 };
13
14 subPackages = [ "cmd/cloud_sql_proxy" ];
15
16 vendorSha256 = "sha256-Uw8YJ1qzLYlTkx6wR/FKeDRHGSwZm2za/c0f/OKHiE0=";
17
18 # Disables tests that require running fuse with a hardcoded path
19 doCheck = false;
20
21 meta = with lib; {
22 description = "An authenticating proxy for Second Generation Google Cloud SQL databases";
23 homepage = "https://github.com/GoogleCloudPlatform/cloudsql-proxy";
24 license = licenses.asl20;
25 maintainers = with maintainers; [ nicknovitski ];
26 mainProgram = "cloud_sql_proxy";
27 };
28}