2021-09-16 23:44:46 +03:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
2018-03-06 01:31:01 +03:00
|
|
|
|
2021-09-16 23:44:46 +03:00
|
|
|
buildGoModule rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "cloud-sql-proxy";
|
2022-02-11 02:55:56 +03:00
|
|
|
version = "1.28.1";
|
2018-03-06 01:31:01 +03:00
|
|
|
|
2021-09-16 23:44:46 +03:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GoogleCloudPlatform";
|
|
|
|
repo = "cloudsql-proxy";
|
|
|
|
rev = "v${version}";
|
2022-02-11 02:55:56 +03:00
|
|
|
sha256 = "sha256-mQYzc5OPYEsxBeSRiPHvYvh8grPOgB5sWB9EBrY3a6A=";
|
2018-03-06 01:31:01 +03:00
|
|
|
};
|
|
|
|
|
2021-09-16 23:44:46 +03:00
|
|
|
subPackages = [ "cmd/cloud_sql_proxy" ];
|
2018-03-06 01:31:01 +03:00
|
|
|
|
2022-02-11 02:55:56 +03:00
|
|
|
vendorSha256 = "sha256-+vuhOrUvA6W6y/6oEvJtsYixyvRzFPzpbw0Qn0AnYRI=";
|
2021-11-03 21:25:13 +03:00
|
|
|
|
2021-12-09 02:32:57 +03:00
|
|
|
checkFlags = [ "-short" ];
|
2018-03-06 01:31:01 +03:00
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2018-03-06 01:31:01 +03:00
|
|
|
description = "An authenticating proxy for Second Generation Google Cloud SQL databases";
|
2021-09-16 23:44:46 +03:00
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/cloudsql-proxy";
|
2018-03-06 01:31:01 +03:00
|
|
|
license = licenses.asl20;
|
2021-09-16 23:44:46 +03:00
|
|
|
maintainers = with maintainers; [ nicknovitski ];
|
2021-11-03 21:25:13 +03:00
|
|
|
mainProgram = "cloud_sql_proxy";
|
2018-03-06 01:31:01 +03:00
|
|
|
};
|
|
|
|
}
|