3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/cloud-sql-proxy/default.nix

29 lines
761 B
Nix
Raw Normal View History

2018-03-05 22:31:01 +00:00
{ stdenv, buildGoPackage, fetchgit }:
buildGoPackage rec {
name = "cloud-sql-proxy-${version}";
2018-10-26 12:18:10 +01: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 12:18:10 +01: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 12:18:10 +01:00
homepage = "https://${goPackagePath}";
2018-03-05 22:31:01 +00:00
license = licenses.asl20;
maintainers = [ maintainers.nicknovitski ];
platforms = platforms.all;
};
}