2023-07-17 09:54:25 +00:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
2018-03-05 22:31:01 +00:00
|
|
|
|
2021-09-16 20:44:46 +00:00
|
|
|
buildGoModule rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "cloud-sql-proxy";
|
2023-08-22 15:55:54 +00:00
|
|
|
version = "2.6.1";
|
2018-03-05 22:31:01 +00:00
|
|
|
|
2021-09-16 20:44:46 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "GoogleCloudPlatform";
|
2023-07-17 09:54:25 +00:00
|
|
|
repo = "cloud-sql-proxy";
|
2021-09-16 20:44:46 +00:00
|
|
|
rev = "v${version}";
|
2023-08-22 15:55:54 +00:00
|
|
|
hash = "sha256-YbfN9ZdcxP78/dNaONBhb1UqcZYJcet+lHuKmvXk9MI=";
|
2018-03-05 22:31:01 +00:00
|
|
|
};
|
|
|
|
|
2023-07-17 09:54:25 +00:00
|
|
|
subPackages = [ "." ];
|
2018-03-05 22:31:01 +00:00
|
|
|
|
2023-08-22 15:55:54 +00:00
|
|
|
vendorHash = "sha256-2Cu9o26R9y2EBUB9kLf98n2AKFOE7NE1NrcMD+8pvRY=";
|
2021-11-03 18:25:13 +00:00
|
|
|
|
2022-05-21 00:02:04 +00:00
|
|
|
preCheck = ''
|
|
|
|
buildFlagsArray+="-short"
|
|
|
|
'';
|
2018-03-05 22:31:01 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2023-07-17 09:54:25 +00:00
|
|
|
description = "Utility for ensuring secure connections to Google Cloud SQL instances";
|
|
|
|
homepage = "https://github.com/GoogleCloudPlatform/cloud-sql-proxy";
|
2018-03-05 22:31:01 +00:00
|
|
|
license = licenses.asl20;
|
2023-07-17 09:54:25 +00:00
|
|
|
maintainers = with maintainers; [ nicknovitski totoroot ];
|
|
|
|
mainProgram = "cloud-sql-proxy";
|
2018-03-05 22:31:01 +00:00
|
|
|
};
|
|
|
|
}
|