nixpkgs/pkgs/tools/misc/cloud-sql-proxy/default.nix

29 lines
822 B
Nix
Raw Normal View History

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 {
pname = "cloud-sql-proxy";
2021-11-03 19:25:13 +01:00
version = "1.27.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}";
2021-11-03 19:25:13 +01:00
sha256 = "sha256-x44nG5M2ycBaf/Fbw5crmAV//yv/WtIYbTjJ7/6TnoI=";
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
2021-11-03 19:25:13 +01:00
vendorSha256 = "sha256-Uw8YJ1qzLYlTkx6wR/FKeDRHGSwZm2za/c0f/OKHiE0=";
# Disables tests that require running fuse with a hardcoded path
doCheck = false;
2018-03-05 23:31:01 +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
};
}