2018-06-11 08:37:06 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, libtool, boost, cctz, double-conversion, gperftools
|
|
|
|
, icu, lz4, mysql, openssl, poco, re2, rdkafka, readline, sparsehash, unixODBC, zstd
|
|
|
|
}:
|
2017-03-27 01:06:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "clickhouse-${version}";
|
|
|
|
|
2018-06-11 08:37:06 +00:00
|
|
|
version = "1.1.54385";
|
2017-03-27 01:06:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yandex";
|
|
|
|
repo = "ClickHouse";
|
|
|
|
rev = "v${version}-stable";
|
2018-06-11 08:37:06 +00:00
|
|
|
sha256 = "0s290xnx9dil2lbxdir5p5zmakvq5h523gdwax2cb37606wg8yj7";
|
2017-03-27 01:06:23 +00:00
|
|
|
};
|
|
|
|
|
2018-06-11 08:37:06 +00:00
|
|
|
patches = [ ./find-mysql.patch ./termcap.patch ];
|
2017-03-27 01:06:23 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake libtool ];
|
|
|
|
|
2017-12-27 15:15:33 +00:00
|
|
|
buildInputs = [
|
2018-06-11 08:37:06 +00:00
|
|
|
boost cctz double-conversion gperftools icu lz4 mysql.connector-c openssl poco
|
|
|
|
re2 rdkafka readline sparsehash unixODBC zstd
|
2017-12-27 15:15:33 +00:00
|
|
|
];
|
2017-03-27 01:06:23 +00:00
|
|
|
|
|
|
|
cmakeFlags = [ "-DENABLE_TESTS=OFF" "-DUNBUNDLED=ON" "-DUSE_STATIC_LIBRARIES=OFF" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://clickhouse.yandex/;
|
|
|
|
description = "Column-oriented database management system";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ orivej ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|