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