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

30 lines
709 B
Nix
Raw Normal View History

{ lib, stdenv, cmake, fetchurl, pkg-config, jansson, zlib }:
2018-02-26 09:02:55 +00:00
2018-02-26 22:27:41 +00:00
let
2019-11-01 15:06:43 +00:00
version = "1.9.1";
2019-08-13 22:52:01 +01:00
in stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "avro-c";
inherit version;
2018-02-26 09:02:55 +00:00
src = fetchurl {
url = "mirror://apache/avro/avro-${version}/c/avro-c-${version}.tar.gz";
2019-11-01 15:06:43 +00:00
sha256 = "0hj6w1w5mqkhnhkvjc0zz5njnnrbcjv5ml4f8gq80wff2cgbrxvx";
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
'';
nativeBuildInputs = [ pkg-config cmake ];
2018-02-26 22:27:41 +00:00
buildInputs = [ jansson zlib ];
2018-02-26 09:02:55 +00:00
meta = with 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
};
}