nixpkgs/pkgs/servers/clickhouse/default.nix

36 lines
1.0 KiB
Nix
Raw Normal View History

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