diff options
author | Luka Blaskovic <lblasc@tvbeat.com> | 2018-02-26 09:02:55 +0000 |
---|---|---|
committer | Luka Blaskovic <lblasc@tvbeat.com> | 2018-02-26 09:02:55 +0000 |
commit | 7d537c454d8fa314c5424e59aca95446632c034b (patch) | |
tree | df3013c00501b4cdc5deacdb1bb75a70a052cf26 /pkgs/development/libraries/avro-c | |
parent | 1ff9fe2864c35b72ab03b8ba76aaf07cfbac476d (diff) |
avro-c: init at 1.8.2
Diffstat (limited to 'pkgs/development/libraries/avro-c')
-rw-r--r-- | pkgs/development/libraries/avro-c/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/libraries/avro-c/default.nix b/pkgs/development/libraries/avro-c/default.nix new file mode 100644 index 000000000000..789bd502c865 --- /dev/null +++ b/pkgs/development/libraries/avro-c/default.nix @@ -0,0 +1,35 @@ +{ stdenv, bash, cmake, fetchurl, pkgconfig, jansson, zlib }: + +let version = "1.8.2"; in + +stdenv.mkDerivation rec { + name = "avro-c-${version}"; + + # + src = fetchurl { + url = "mirror://apache/avro/avro-${version}/c/avro-c-${version}.tar.gz"; + sha256 = "03pixl345kkpn1jds03rpdcwjabi41rgdzi8f7y93gcg5cmrhfa6"; + }; + + patchPhase = '' + substituteInPlace version.sh \ + --replace /bin/bash "$bash/bin/bash" + ''; + + buildInputs = [ + pkgconfig + cmake + jansson + zlib + ]; + + enableParallelBuilding = true; + + meta = { + description = "A C library which implements parts of the Avro Specification"; + homepage = https://avro.apache.org/; + license = stdenv.lib.licenses.asl20; + maintainers = with stdenv.lib.maintainers; [ lblasc ]; + platforms = stdenv.lib.platforms.all; + }; +} |