Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 27 lines 710 B view raw
1{ lib, buildGoPackage, fetchgit }: 2 3buildGoPackage rec { 4 pname = "cloud-sql-proxy"; 5 version = "1.13"; 6 7 goPackagePath = "github.com/GoogleCloudPlatform/cloudsql-proxy"; 8 9 subPackages = [ "cmd/cloud_sql_proxy" ]; 10 11 src = fetchgit { 12 rev = version; 13 url = "https://${goPackagePath}"; 14 sha256 = "07n2hfhqa9hinabmx79aqqwxzzkky76x3jvpd89kch14fijbh532"; 15 }; 16 17 goDeps = ./deps.nix; 18 19 buildFlagsArray = [ "-ldflags=" "-X main.versionString=${version}" ]; 20 21 meta = with lib; { 22 description = "An authenticating proxy for Second Generation Google Cloud SQL databases"; 23 homepage = "https://${goPackagePath}"; 24 license = licenses.asl20; 25 maintainers = [ maintainers.nicknovitski ]; 26 }; 27}