2023-07-17 09:54:25 +00:00
|
|
|
{ lib
|
2024-06-17 08:28:51 +00:00
|
|
|
, buildGoModule
|
2023-07-17 09:54:25 +00:00
|
|
|
, fetchFromGitHub
|
2024-06-18 16:51:10 +00:00
|
|
|
, nix-update-script
|
2023-07-17 09:54:25 +00:00
|
|
|
}:
|
2018-03-05 22:31:01 +00:00
|
|
|
|
2024-06-17 08:28:51 +00:00
|
|
|
buildGoModule rec {
|
2023-10-15 18:47:50 +00:00
|
|
|
pname = "google-cloud-sql-proxy";
|
2024-10-29 09:10:47 +00:00
|
|
|
version = "2.14.0";
|
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}";
|
2024-10-29 09:10:47 +00:00
|
|
|
hash = "sha256-SM74Z9+oo472BIM/moSj9zyZh2HefkAkqoC4L1tu+X8=";
|
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
|
|
|
|
2024-10-29 09:10:47 +00:00
|
|
|
vendorHash = "sha256-Ao/kSC4gcsZpRaSu7FhqJs1ulUbfrzOpO4CMropCywo=";
|
2021-11-03 18:25:13 +00:00
|
|
|
|
2024-01-07 10:10:58 +00:00
|
|
|
checkFlags = [
|
|
|
|
"-short"
|
|
|
|
];
|
2018-03-05 22:31:01 +00:00
|
|
|
|
2024-06-18 16:51:10 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
|
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";
|
2023-10-15 18:47:50 +00:00
|
|
|
longDescription = ''
|
|
|
|
The Cloud SQL Auth Proxy is a utility for ensuring secure connections to your Cloud SQL instances.
|
|
|
|
It provides IAM authorization, allowing you to control who can connect to your instance through IAM permissions,
|
|
|
|
and TLS 1.3 encryption, without having to manage certificates.
|
|
|
|
See the [Connecting Overview](https://cloud.google.com/sql/docs/mysql/connect-overview) page for more information
|
|
|
|
on connecting to a Cloud SQL instance, or the [About the Proxy](https://cloud.google.com/sql/docs/mysql/sql-proxy)
|
|
|
|
page for details on how the Cloud SQL Proxy works.
|
|
|
|
'';
|
2023-07-17 09:54:25 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|