2021-09-16 22:44:46 +02:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-03-05 23:31:01 +01:00
|
|
|
|
2021-09-16 22:44:46 +02:00
|
|
|
buildGoModule rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "cloud-sql-proxy";
|
2022-04-07 10:27:53 +02:00
|
|
|
version = "1.30.0";
|
2018-03-05 23:31:01 +01:00
|
|
|
|
2021-09-16 22:44:46 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GoogleCloudPlatform";
|
|
|
|
repo = "cloudsql-proxy";
|
|
|
|
rev = "v${version}";
|
2022-04-07 10:27:53 +02:00
|
|
|
sha256 = "sha256-EbUIzAKMqCLsz8rBMWCvw00j6VX2ZYEMtNsMEx30kBU=";
|
2018-03-05 23:31:01 +01:00
|
|
|
};
|
|
|
|
|
2021-09-16 22:44:46 +02:00
|
|
|
subPackages = [ "cmd/cloud_sql_proxy" ];
|
2018-03-05 23:31:01 +01:00
|
|
|
|
2022-04-07 10:27:53 +02:00
|
|
|
vendorSha256 = "sha256-yxqLGDqdu9vX3ykHq7Kzf8oBH1ydltZkiWNWWM2l0Aw=";
|
2021-11-03 19:25:13 +01:00
|
|
|
|
2022-05-21 02:02:04 +02:00
|
|
|
preCheck = ''
|
|
|
|
buildFlagsArray+="-short"
|
|
|
|
'';
|
2018-03-05 23:31:01 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-03-05 23:31:01 +01:00
|
|
|
description = "An authenticating proxy for Second Generation Google Cloud SQL databases";
|
2021-09-16 22:44:46 +02:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/cloudsql-proxy";
|
2018-03-05 23:31:01 +01:00
|
|
|
license = licenses.asl20;
|
2021-09-16 22:44:46 +02:00
|
|
|
maintainers = with maintainers; [ nicknovitski ];
|
2021-11-03 19:25:13 +01:00
|
|
|
mainProgram = "cloud_sql_proxy";
|
2018-03-05 23:31:01 +01:00
|
|
|
};
|
|
|
|
}
|