protoc-gen-js: fix build by pinning to gcc14

Fixes https://github.com/NixOS/nixpkgs/issues/475586.

See https://github.com/NixOS/nixpkgs/issues/475479.
This commit is contained in:
Gutyina Gergő
2026-01-04 16:45:49 +01:00
parent 8f8e97e5e8
commit 22d08e2cb8
+12 -1
View File
@@ -1,5 +1,6 @@
{
stdenv,
gcc14Stdenv,
lib,
buildBazelPackage,
bazel_7,
@@ -7,7 +8,17 @@
cctools,
}:
buildBazelPackage rec {
let
# fails to build with gcc15, see https://github.com/NixOS/nixpkgs/issues/475586
buildBazelPackage' =
if stdenv.cc.isGNU then
buildBazelPackage.override {
stdenv = gcc14Stdenv;
}
else
buildBazelPackage;
in
buildBazelPackage' rec {
pname = "protoc-gen-js";
version = "3.21.4";