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

29 lines
788 B
Nix
Raw Normal View History

2018-03-05 22:31:01 +00:00
{ 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;
};
}