1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-19 03:48:57 +00:00
nixpkgs/pkgs/tools/misc/cloud-sql-proxy/default.nix

28 lines
718 B
Nix
Raw Normal View History

{ lib, stdenv, buildGoPackage, fetchgit }:
2018-03-05 22:31:01 +00:00
buildGoPackage rec {
pname = "cloud-sql-proxy";
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 lib; {
2018-03-05 22:31:01 +00:00
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 ];
};
}