lol

protoc-gen-js: init at 3.21.2

+37
+37
pkgs/by-name/pr/protoc-gen-js/package.nix
··· 1 + { stdenv, lib, buildBazelPackage, bazel_6, fetchFromGitHub, darwin }: 2 + 3 + buildBazelPackage rec { 4 + pname = "protoc-gen-js"; 5 + version = "3.21.2"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "protocolbuffers"; 9 + repo = "protobuf-javascript"; 10 + rev = "v${version}"; 11 + hash = "sha256-TmP6xftUVTD7yML7UEM/DB8bcsL5RFlKPyCpcboD86U="; 12 + }; 13 + 14 + bazel = bazel_6; 15 + bazelTargets = [ "generator:protoc-gen-js" ]; 16 + bazelBuildFlags = lib.optionals stdenv.cc.isClang [ "--cxxopt=-x" "--cxxopt=c++" "--host_cxxopt=-x" "--host_cxxopt=c++" ]; 17 + removeRulesCC = false; 18 + removeLocalConfigCC = false; 19 + 20 + LIBTOOL = lib.optionalString stdenv.isDarwin "${darwin.cctools}/bin/libtool"; 21 + 22 + fetchAttrs.sha256 = "sha256-H0zTMCMFct09WdR/mzcs9FcC2OU/ZhGye7GAkx4tGa8="; 23 + 24 + buildAttrs.installPhase = '' 25 + mkdir -p $out/bin 26 + install -Dm755 bazel-bin/generator/protoc-gen-js $out/bin/ 27 + ''; 28 + 29 + meta = with lib; { 30 + description = "Protobuf plugin for generating JavaScript code"; 31 + homepage = "https://github.com/protocolbuffers/protobuf-javascript"; 32 + platforms = platforms.linux ++ platforms.darwin; 33 + license = with licenses; [ asl20 bsd3 ]; 34 + sourceProvenance = [ sourceTypes.fromSource ]; 35 + maintainers = with maintainers; [ Sorixelle ]; 36 + }; 37 + }