2018-03-05 22:31:01 +00:00
|
|
|
{ stdenv, buildGoPackage, fetchgit }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "cloud-sql-proxy";
|
2018-10-26 11:18:10 +00:00
|
|
|
version = "1.13";
|
2018-03-05 22:31:01 +00:00
|
|
|
|
|
|
|
goPackagePath = "github.com/GoogleCloudPlatform/cloudsql-proxy";
|
|
|
|
|
|
|
|
subPackages = [ "cmd/cloud_sql_proxy" ];
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
rev = version;
|
|
|
|
url = "https://${goPackagePath}";
|
2018-10-26 11:18:10 +00:00
|
|
|
sha256 = "07n2hfhqa9hinabmx79aqqwxzzkky76x3jvpd89kch14fijbh532";
|
2018-03-05 22:31:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=" "-X main.versionString=${version}" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An authenticating proxy for Second Generation Google Cloud SQL databases";
|
2018-10-26 11:18:10 +00:00
|
|
|
homepage = "https://${goPackagePath}";
|
2018-03-05 22:31:01 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.nicknovitski ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|