2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, cmake, fetchurl, pkgconfig, jansson, zlib }:
|
2018-02-26 09:02:55 +00:00
|
|
|
|
2018-02-26 22:27:41 +00:00
|
|
|
let
|
2019-05-21 05:18:13 +01:00
|
|
|
version = "1.9.0";
|
2018-02-26 22:27:41 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
2018-02-26 09:02:55 +00:00
|
|
|
name = "avro-c-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://apache/avro/avro-${version}/c/avro-c-${version}.tar.gz";
|
2019-05-21 05:18:13 +01:00
|
|
|
sha256 = "1ch8z9jpkjxjx2zh28z0946gz3vwj1jnkrzg4vwvfa287128cml0";
|
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
|
|
|
'';
|
|
|
|
|
2018-02-26 22:27:41 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig cmake ];
|
|
|
|
|
|
|
|
buildInputs = [ jansson zlib ];
|
2018-02-26 09:02:55 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2018-02-26 22:27:41 +00:00
|
|
|
meta = with stdenv.lib; {
|
2018-02-26 09:02:55 +00:00
|
|
|
description = "A C library which implements parts of the Avro Specification";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|