cloud-sql-proxy: init at 1.11
This commit is contained in:
28
pkgs/tools/misc/cloud-sql-proxy/default.nix
Normal file
28
pkgs/tools/misc/cloud-sql-proxy/default.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user