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