Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 28 lines 761 B view raw
1{ stdenv, buildGoPackage, fetchgit }: 2 3buildGoPackage rec { 4 name = "cloud-sql-proxy-${version}"; 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 stdenv.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 platforms = platforms.all; 27 }; 28}