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

32 lines
743 B
Nix
Raw Normal View History

{ stdenv, cmake, fetchurl, pkgconfig, jansson, zlib }:
2018-02-26 01:02:55 -08:00
2018-02-26 14:27:41 -08:00
let
2019-11-01 08:06:43 -07:00
version = "1.9.1";
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";
2019-11-01 08:06:43 -07:00
sha256 = "0hj6w1w5mqkhnhkvjc0zz5njnnrbcjv5ml4f8gq80wff2cgbrxvx";
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
'';
2018-02-26 14:27:41 -08:00
nativeBuildInputs = [ pkgconfig cmake ];
buildInputs = [ jansson zlib ];
2018-02-26 01:02:55 -08:00
enableParallelBuilding = true;
2018-02-26 14:27:41 -08:00
meta = with stdenv.lib; {
2018-02-26 01:02:55 -08:00
description = "A C library which implements parts of the Avro Specification";
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
};
}