nixpkgs/pkgs/tools/misc/cloud-sql-proxy/default.nix

28 lines
710 B
Nix
Raw Normal View History

{ lib, buildGoPackage, fetchgit }:
2018-03-05 23:31:01 +01:00
buildGoPackage rec {
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}" ];
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 ];
};
}