depot/third_party/nixpkgs/pkgs/tools/misc/cloud-sql-proxy/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

32 lines
775 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "cloud-sql-proxy";
version = "2.7.0";
src = fetchFromGitHub {
owner = "GoogleCloudPlatform";
repo = "cloud-sql-proxy";
rev = "v${version}";
hash = "sha256-4PB9Eaqb8teF+gmiHD2VAIFnxqiK2Nb0u+xSNAM8iMs=";
};
subPackages = [ "." ];
vendorHash = "sha256-LaI7IdSyB7ETTjqIcIPDf3noEbvwlN3+KqrkSm8B6m8=";
preCheck = ''
buildFlagsArray+="-short"
'';
meta = with lib; {
description = "Utility for ensuring secure connections to Google Cloud SQL instances";
homepage = "https://github.com/GoogleCloudPlatform/cloud-sql-proxy";
license = licenses.asl20;
maintainers = with maintainers; [ nicknovitski totoroot ];
mainProgram = "cloud-sql-proxy";
};
}