Skip to content

Commit

Permalink
KAA-1252 Backport avro-cpp from nixpkgs-unstable
Browse files Browse the repository at this point in the history
  • Loading branch information
rasendubi committed Aug 18, 2016
1 parent e9dd0a1 commit ea4ae76
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
29 changes: 29 additions & 0 deletions nix/avro-c++/default.nix
@@ -0,0 +1,29 @@
{ stdenv, fetchurl, cmake, boost155, pythonPackages
}:

let version = "1.7.5"; in

stdenv.mkDerivation {
name = "avro-c++-${version}";

src = fetchurl {
url = "mirror://apache/avro/avro-${version}/cpp/avro-cpp-${version}.tar.gz";
sha256 = "064ssbbgrc3hyalzj8rn119bsrnyk1vlpkhl8gghv96jgqbpdyb3";
};

buildInputs = [
cmake
boost155
pythonPackages.python
];

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; [ rasendubi ];
platforms = stdenv.lib.platforms.all;
};
}
2 changes: 2 additions & 0 deletions nix/default.nix
Expand Up @@ -33,6 +33,8 @@ let
callPackage = pkgs.lib.callPackageWith (pkgs // self);

self = rec {
avro-cpp = callPackage ./avro-c++ { };

gcc-xtensa-lx106 = callPackage ./gcc-xtensa-lx106 { };

esp8266-rtos-sdk = callPackage ./esp8266-rtos-sdk { };
Expand Down
6 changes: 5 additions & 1 deletion pom.xml
Expand Up @@ -592,8 +592,12 @@ Copyright 2014-2016 CyberVision, Inc.
<exclude>**/security.policy</exclude>
<exclude>doc/</exclude>

<exclude>nix/astyle/max_indent.patch</exclude>
<exclude>gh-pages-stub/</exclude>

<exclude>nix/astyle/max_indent.patch</exclude>
<!-- backported from nixpkgs -->
<exclude>nix/avro-c++/</exclude>

<!-- Auto-generated -->
<exclude>nix/kaa-docs/Gemfile.lock</exclude>
<exclude>nix/kaa-docs/gemset.nix</exclude>
Expand Down

0 comments on commit ea4ae76

Please sign in to comment.