nixpkgs/pkgs/servers/clickhouse/default.nix

36 lines
1 KiB
Nix
Raw Normal View History

2018-06-11 10:37:06 +02:00
{ stdenv, fetchFromGitHub, cmake, libtool, boost, cctz, double-conversion, gperftools
, icu, lz4, mysql, openssl, poco, re2, rdkafka, readline, sparsehash, unixODBC, zstd
}:
2017-03-27 03:06:23 +02:00
stdenv.mkDerivation rec {
name = "clickhouse-${version}";
2018-06-11 10:37:06 +02:00
version = "1.1.54385";
2017-03-27 03:06:23 +02:00
src = fetchFromGitHub {
owner = "yandex";
repo = "ClickHouse";
rev = "v${version}-stable";
2018-06-11 10:37:06 +02:00
sha256 = "0s290xnx9dil2lbxdir5p5zmakvq5h523gdwax2cb37606wg8yj7";
2017-03-27 03:06:23 +02:00
};
2018-06-11 10:37:06 +02:00
patches = [ ./find-mysql.patch ./termcap.patch ];
2017-03-27 03:06:23 +02:00
nativeBuildInputs = [ cmake libtool ];
buildInputs = [
2018-06-11 10:37:06 +02:00
boost cctz double-conversion gperftools icu lz4 mysql.connector-c openssl poco
re2 rdkafka readline sparsehash unixODBC zstd
];
2017-03-27 03:06:23 +02: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;
};
}