nixpkgs/pkgs/development/libraries/avro-c/default.nix

31 lines
742 B
Nix
Raw Normal View History

2018-02-26 10:02:55 +01:00
{ stdenv, bash, cmake, fetchurl, pkgconfig, jansson, zlib }:
2018-02-26 23:27:41 +01:00
let
version = "1.8.2";
in stdenv.mkDerivation rec {
2018-02-26 10:02:55 +01:00
name = "avro-c-${version}";
src = fetchurl {
url = "mirror://apache/avro/avro-${version}/c/avro-c-${version}.tar.gz";
sha256 = "03pixl345kkpn1jds03rpdcwjabi41rgdzi8f7y93gcg5cmrhfa6";
};
2018-02-26 23:27:41 +01:00
postPatch = ''
patchShebangs .
2018-02-26 10:02:55 +01:00
'';
2018-02-26 23:27:41 +01:00
nativeBuildInputs = [ pkgconfig cmake ];
buildInputs = [ jansson zlib ];
2018-02-26 10:02:55 +01:00
enableParallelBuilding = true;
2018-02-26 23:27:41 +01:00
meta = with stdenv.lib; {
2018-02-26 10:02:55 +01:00
description = "A C library which implements parts of the Avro Specification";
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
};
}