cloud-sql-proxy: init at 1.11

This commit is contained in:
Nick Novitski
2018-03-05 14:31:01 -08:00
parent b1e20c9d4e
commit 2cac5d73ce
3 changed files with 78 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
{ stdenv, buildGoPackage, fetchgit }:
buildGoPackage rec {
name = "cloud-sql-proxy-${version}";
version = "1.11";
goPackagePath = "github.com/GoogleCloudPlatform/cloudsql-proxy";
subPackages = [ "cmd/cloud_sql_proxy" ];
src = fetchgit {
rev = version;
url = "https://${goPackagePath}";
sha256 = "13g68i51f03xdh7a1qjmj8j5ljn4drd3n44fn348xfdxqclnx90l";
};
goDeps = ./deps.nix;
buildFlagsArray = [ "-ldflags=" "-X main.versionString=${version}" ];
meta = with stdenv.lib; {
description = "An authenticating proxy for Second Generation Google Cloud SQL databases";
homepage = https://github.com/GoogleCloudPlatform/cloudsql-proxy;
license = licenses.asl20;
maintainers = [ maintainers.nicknovitski ];
platforms = platforms.all;
};
}