2022-07-14 12:49:19 +00:00
|
|
|
{ lib, stdenv, cmake, fetchurl, pkg-config, jansson, snappy, xz, zlib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-18 21:22:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "avro-c";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "1.11.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://apache/avro/avro-${version}/c/avro-c-${version}.tar.gz";
|
2023-11-16 04:20:00 +00:00
|
|
|
sha256 = "sha256-chfKrPt9XzRhF2ZHOmbC4nm8e/rxuimMfwSzsvulc2U=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
buildInputs = [ jansson snappy xz zlib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "C library which implements parts of the Avro Specification";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://avro.apache.org/";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ lblasc ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|