depot/third_party/nixpkgs/pkgs/tools/misc/cloud-sql-proxy/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

29 lines
788 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "cloud-sql-proxy";
version = "1.30.0";
src = fetchFromGitHub {
owner = "GoogleCloudPlatform";
repo = "cloudsql-proxy";
rev = "v${version}";
sha256 = "sha256-EbUIzAKMqCLsz8rBMWCvw00j6VX2ZYEMtNsMEx30kBU=";
};
subPackages = [ "cmd/cloud_sql_proxy" ];
vendorSha256 = "sha256-yxqLGDqdu9vX3ykHq7Kzf8oBH1ydltZkiWNWWM2l0Aw=";
preCheck = ''
buildFlagsArray+="-short"
'';
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";
};
}