From 55cfe4cc27658ed2b272eddb9234f23e34ef7b07 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 1 May 2023 05:07:57 +0000 Subject: [PATCH 1/2] avro-cpp: 1.11.0 -> 1.11.1 --- pkgs/development/libraries/avro-c++/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/avro-c++/default.nix b/pkgs/development/libraries/avro-c++/default.nix index 8def8041ced9..86f993eb9cb7 100644 --- a/pkgs/development/libraries/avro-c++/default.nix +++ b/pkgs/development/libraries/avro-c++/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "avro-c++"; - version = "1.11.0"; + version = "1.11.1"; src = fetchurl { url = "mirror://apache/avro/avro-${version}/cpp/avro-cpp-${version}.tar.gz"; - sha256 = "sha256-73DKihz+7XAX3LLA7VkTdN6rFhuGvmyksxK8JMranFY="; + sha256 = "sha256-LuxeWnCDULUP3slja5aKPjGBcDE+8tReyQmSEIdXGYw="; }; nativeBuildInputs = [ cmake python3 ]; From ea0b0f959d546a5b03a4102de12a85da424e4b78 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Wed, 17 Jan 2024 13:52:57 +0100 Subject: [PATCH 2/2] avro-cpp: 1.11.1 -> 1.11.3 --- .../libraries/avro-c++/default.nix | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/avro-c++/default.nix b/pkgs/development/libraries/avro-c++/default.nix index 86f993eb9cb7..57070c8f442e 100644 --- a/pkgs/development/libraries/avro-c++/default.nix +++ b/pkgs/development/libraries/avro-c++/default.nix @@ -1,13 +1,30 @@ -{ lib, stdenv, fetchurl, cmake, boost, python3 }: +{ lib +, stdenv +, fetchurl +, fetchpatch +, cmake +, boost +, python3 +}: stdenv.mkDerivation rec { pname = "avro-c++"; - version = "1.11.1"; + version = "1.11.3"; src = fetchurl { url = "mirror://apache/avro/avro-${version}/cpp/avro-cpp-${version}.tar.gz"; - sha256 = "sha256-LuxeWnCDULUP3slja5aKPjGBcDE+8tReyQmSEIdXGYw="; + hash = "sha256-+6JCrvd+yBnQdWH8upN1FyGVbejQyujh8vMAtUszG64="; }; + patches = [ + # This patch fixes boost compatibility and can be removed when + # upgrading beyond 1.11.3 https://github.com/apache/avro/pull/1920 + (fetchpatch { + name = "fix-boost-compatibility.patch"; + url = "https://github.com/apache/avro/commit/016323828f147f185d03f50d2223a2f50bfafce1.patch"; + hash = "sha256-hP/5J2JzSplMvg8EjEk98Vim8DfTyZ4hZ/WGiVwvM1A="; + }) + ]; + patchFlags = [ "-p3" ]; nativeBuildInputs = [ cmake python3 ]; buildInputs = [ boost ];