2021-01-21 09:00:13 -08:00
|
|
|
{ lib, stdenv, cmake, fetchurl, pkg-config, jansson, zlib }:
|
2018-02-26 01:02:55 -08:00
|
|
|
|
2018-02-26 14:27:41 -08:00
|
|
|
let
|
2021-04-29 20:45:26 -07:00
|
|
|
version = "1.10.2";
|
2019-08-13 14:52:01 -07:00
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 14:52:01 -07:00
|
|
|
pname = "avro-c";
|
|
|
|
inherit version;
|
2018-02-26 01:02:55 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://apache/avro/avro-${version}/c/avro-c-${version}.tar.gz";
|
2021-04-29 20:45:26 -07:00
|
|
|
sha256 = "sha256-rj+zK+xKBon1Rn4JIBGS7cbo80ITTvBq1FLKhw9Wt+I=";
|
2018-02-26 01:02:55 -08:00
|
|
|
};
|
|
|
|
|
2018-02-26 14:27:41 -08:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs .
|
2018-02-26 01:02:55 -08:00
|
|
|
'';
|
|
|
|
|
2021-01-18 22:50:56 -08:00
|
|
|
nativeBuildInputs = [ pkg-config cmake ];
|
2018-02-26 14:27:41 -08:00
|
|
|
|
|
|
|
buildInputs = [ jansson zlib ];
|
2018-02-26 01:02:55 -08:00
|
|
|
|
2021-01-21 09:00:13 -08:00
|
|
|
meta = with lib; {
|
2018-02-26 01:02:55 -08:00
|
|
|
description = "A C library which implements parts of the Avro Specification";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://avro.apache.org/";
|
2018-02-26 14:27:41 -08:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ lblasc ];
|
|
|
|
platforms = platforms.all;
|
2018-02-26 01:02:55 -08:00
|
|
|
};
|
|
|
|
}
|