2022-06-27 20:38:28 +00:00
|
|
|
{ lib, stdenv, cmake, fetchurl, pkg-config, jansson, snappy, xz, zlib }:
|
2018-02-26 09:02:55 +00:00
|
|
|
|
2021-07-17 18:37:27 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "avro-c";
|
2024-09-23 19:39:47 +00:00
|
|
|
version = "1.12.0";
|
2018-02-26 09:02:55 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://apache/avro/avro-${version}/c/avro-c-${version}.tar.gz";
|
2024-09-23 19:39:47 +00:00
|
|
|
sha256 = "sha256-dDM9QxB5w113DO9plstN4EBY0Z6BvQuaNjvP04V1A38=";
|
2018-02-26 09:02:55 +00:00
|
|
|
};
|
|
|
|
|
2018-02-26 22:27:41 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
2018-02-26 09:02:55 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2018-02-26 22:27:41 +00:00
|
|
|
|
2022-06-27 20:38:28 +00:00
|
|
|
buildInputs = [ jansson snappy xz zlib ];
|
2018-02-26 09:02:55 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-02-26 09:02:55 +00:00
|
|
|
description = "C library which implements parts of the Avro Specification";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://avro.apache.org/";
|
2018-02-26 22:27:41 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ lblasc ];
|
|
|
|
platforms = platforms.all;
|
2018-02-26 09:02:55 +00:00
|
|
|
};
|
|
|
|
}
|