nixpkgs/pkgs/tools/misc/cloud-sql-proxy/default.nix
2018-05-08 16:19:23 -07:00

28 lines
788 B
Nix

{ 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;
};
}