1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/development/libraries/arrow-cpp/default.nix

48 lines
1.7 KiB
Nix
Raw Normal View History

2018-04-09 00:59:38 +01:00
{ stdenv, symlinkJoin, fetchurl, boost, brotli, cmake, flatbuffers, gtest, gflags, lz4, python, rapidjson, snappy, zlib, zstd }:
2018-03-16 20:19:24 +00:00
stdenv.mkDerivation rec {
name = "arrow-cpp-${version}";
version = "0.10.0";
2018-03-16 20:19:24 +00:00
src = fetchurl {
url = "mirror://apache/arrow/arrow-${version}/apache-arrow-${version}.tar.gz";
sha256 = "0bc4krapz1kzdm16npzmgdz7zvg9lip6rnqbwph8vfn7zji0fcll";
2018-03-16 20:19:24 +00:00
};
sourceRoot = "apache-arrow-${version}/cpp";
# patch to fix python-test
patches = [ ./darwin.patch ];
2018-03-16 20:19:24 +00:00
nativeBuildInputs = [ cmake ];
2018-04-09 00:59:38 +01:00
buildInputs = [ boost python.pkgs.python python.pkgs.numpy ];
2018-03-16 20:19:24 +00:00
preConfigure = ''
substituteInPlace cmake_modules/FindBrotli.cmake --replace CMAKE_STATIC_LIBRARY CMAKE_SHARED_LIBRARY
substituteInPlace cmake_modules/FindLz4.cmake --replace CMAKE_STATIC_LIBRARY CMAKE_SHARED_LIBRARY
substituteInPlace cmake_modules/FindSnappy.cmake --replace CMAKE_STATIC_LIBRARY CMAKE_SHARED_LIBRARY
'';
BROTLI_HOME = symlinkJoin { name="brotli-wrap"; paths = [ brotli.lib brotli.dev ]; };
FLATBUFFERS_HOME = flatbuffers;
GTEST_HOME = gtest;
GFLAGS_HOME = gflags;
LZ4_HOME = symlinkJoin { name="lz4-wrap"; paths = [ lz4 lz4.dev ]; };
RAPIDJSON_HOME = rapidjson;
SNAPPY_HOME = symlinkJoin { name="snappy-wrap"; paths = [ snappy snappy.dev ]; };
ZLIB_HOME = symlinkJoin { name="zlib-wrap"; paths = [ zlib.dev zlib.static ]; };
ZSTD_HOME = zstd;
2018-03-19 00:13:16 +00:00
cmakeFlags = [
"-DARROW_PYTHON=ON"
];
2018-03-16 20:19:24 +00:00
meta = {
description = "A cross-language development platform for in-memory data";
homepage = https://arrow.apache.org/;
license = stdenv.lib.licenses.asl20;
platforms = stdenv.lib.platforms.unix;
maintainers = with stdenv.lib.maintainers; [ veprbl ];
};
}