2017-12-27 15:15:33 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, libtool, boost, double-conversion, gperftools
|
|
|
|
, icu, mysql, lz4, openssl, poco, re2, rdkafka, readline, sparsehash, unixODBC
|
|
|
|
, zookeeper_mt, zstd }:
|
2017-03-27 02:06:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "clickhouse-${version}";
|
|
|
|
|
2017-11-13 16:37:45 +00:00
|
|
|
version = "1.1.54310";
|
2017-03-27 02:06:23 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yandex";
|
|
|
|
repo = "ClickHouse";
|
|
|
|
rev = "v${version}-stable";
|
2017-11-13 16:37:45 +00:00
|
|
|
sha256 = "167pihqak8ip7bmlyrbzl9x3mpn381j8v7pl7nhrl9bfnzgrq69v";
|
2017-03-27 02:06:23 +01:00
|
|
|
};
|
|
|
|
|
2017-06-10 10:03:18 +01:00
|
|
|
patches = [ ./termcap.patch ];
|
2017-03-27 02:06:23 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake libtool ];
|
|
|
|
|
2017-12-27 15:15:33 +00:00
|
|
|
buildInputs = [
|
|
|
|
boost double-conversion gperftools icu mysql.connector-c lz4 openssl poco
|
|
|
|
re2 rdkafka readline sparsehash unixODBC zookeeper_mt zstd
|
|
|
|
];
|
2017-03-27 02:06:23 +01:00
|
|
|
|
|
|
|
cmakeFlags = [ "-DENABLE_TESTS=OFF" "-DUNBUNDLED=ON" "-DUSE_STATIC_LIBRARIES=OFF" ];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-Wno-error=unused-function" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://clickhouse.yandex/;
|
|
|
|
description = "Column-oriented database management system";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|