avro-cpp: 1.11.1 -> 1.11.3

This commit is contained in:
Arnout Engelen 2024-01-17 13:52:57 +01:00
parent 55cfe4cc27
commit ea0b0f959d
No known key found for this signature in database
GPG key ID: 061107B0F74A6DAA

View file

@ -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 ];