mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 16:53:21 +00:00
28 lines
710 B
Nix
28 lines
710 B
Nix
{ lib, buildGoPackage, fetchgit }:
|
|
|
|
buildGoPackage rec {
|
|
pname = "cloud-sql-proxy";
|
|
version = "1.13";
|
|
|
|
goPackagePath = "github.com/GoogleCloudPlatform/cloudsql-proxy";
|
|
|
|
subPackages = [ "cmd/cloud_sql_proxy" ];
|
|
|
|
src = fetchgit {
|
|
rev = version;
|
|
url = "https://${goPackagePath}";
|
|
sha256 = "07n2hfhqa9hinabmx79aqqwxzzkky76x3jvpd89kch14fijbh532";
|
|
};
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
buildFlagsArray = [ "-ldflags=" "-X main.versionString=${version}" ];
|
|
|
|
meta = with lib; {
|
|
description = "An authenticating proxy for Second Generation Google Cloud SQL databases";
|
|
homepage = "https://${goPackagePath}";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.nicknovitski ];
|
|
};
|
|
}
|