29 lines
822 B
Nix
29 lines
822 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "cloud-sql-proxy";
|
|
version = "1.27.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "GoogleCloudPlatform";
|
|
repo = "cloudsql-proxy";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-x44nG5M2ycBaf/Fbw5crmAV//yv/WtIYbTjJ7/6TnoI=";
|
|
};
|
|
|
|
subPackages = [ "cmd/cloud_sql_proxy" ];
|
|
|
|
vendorSha256 = "sha256-Uw8YJ1qzLYlTkx6wR/FKeDRHGSwZm2za/c0f/OKHiE0=";
|
|
|
|
# Disables tests that require running fuse with a hardcoded path
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "An authenticating proxy for Second Generation Google Cloud SQL databases";
|
|
homepage = "https://github.com/GoogleCloudPlatform/cloudsql-proxy";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ nicknovitski ];
|
|
mainProgram = "cloud_sql_proxy";
|
|
};
|
|
}
|