From 9543473443ba83c4b52e8e1faee4af8698f3e058 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 27 Jan 2026 19:29:14 +0000 Subject: [PATCH] protobuf: use upstream patch to fix the nvcc compiler bug --- pkgs/development/libraries/protobuf/generic.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/protobuf/generic.nix b/pkgs/development/libraries/protobuf/generic.nix index 7a74643b9643..8099f04007d2 100644 --- a/pkgs/development/libraries/protobuf/generic.nix +++ b/pkgs/development/libraries/protobuf/generic.nix @@ -9,7 +9,6 @@ cmake, fetchFromGitHub, fetchpatch, - fetchurl, gtest, zlib, version, @@ -66,9 +65,9 @@ stdenv.mkDerivation (finalAttrs: { # # A specific consequence of this bug is a test failure when building onnxruntime with cudaSupport # See https://github.com/NixOS/nixpkgs/pull/450587#discussion_r2698215974 - (fetchurl { - url = "https://raw.githubusercontent.com/conda-forge/protobuf-feedstock/737a13ea0680484c08e8e0ab0144dab82c10c1b3/recipe/patches/0010-Workaround-nvcc-bug-in-message_lite.h.patch"; - hash = "sha256-uXm/j0r5ya/Hsc6/wAZDHLV2sn9Iv/79oOCmDjiU9UE="; + (fetchpatch { + url = "https://github.com/protocolbuffers/protobuf/commit/211f52431b9ec30d4d4a1c76aafd64bd78d93c43.patch"; + hash = "sha256-2/vc4anc+kH7otfLHfBtW8dRowPyObiXZn0+HtQktak="; }) ];