nixpkgs/pkgs/by-name/go/google-cloud-sql-proxy/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

44 lines
1.4 KiB
Nix

{ lib
, buildGoModule
, fetchFromGitHub
, nix-update-script
}:
buildGoModule rec {
pname = "google-cloud-sql-proxy";
version = "2.14.0";
src = fetchFromGitHub {
owner = "GoogleCloudPlatform";
repo = "cloud-sql-proxy";
rev = "v${version}";
hash = "sha256-SM74Z9+oo472BIM/moSj9zyZh2HefkAkqoC4L1tu+X8=";
};
subPackages = [ "." ];
vendorHash = "sha256-Ao/kSC4gcsZpRaSu7FhqJs1ulUbfrzOpO4CMropCywo=";
checkFlags = [
"-short"
];
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Utility for ensuring secure connections to Google Cloud SQL instances";
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.
'';
homepage = "https://github.com/GoogleCloudPlatform/cloud-sql-proxy";
license = licenses.asl20;
maintainers = with maintainers; [ nicknovitski totoroot ];
mainProgram = "cloud-sql-proxy";
};
}