Merge pull request #92694 from RaghavSood/clickhouse/20.5.2.7

clickhouse: 19.17.9.60 -> 20.5.2.7
This commit is contained in:
Maximilian Bosch 2020-07-08 17:49:05 +02:00 committed by GitHub
commit 904aa5d572
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 31 additions and 17 deletions

View File

@ -1,39 +1,53 @@
{ stdenv, fetchFromGitHub, cmake, libtool, lldClang, ninja { stdenv, fetchFromGitHub, cmake, libtool, lldClang, ninja
, boost, brotli, capnproto, cctz, clang-unwrapped, double-conversion, gperftools , boost, brotli, capnproto, cctz, clang-unwrapped, double-conversion
, icu, jemalloc, libcpuid, libxml2, lld, llvm, lz4, libmysqlclient, openssl , icu, jemalloc, libcpuid, libxml2, lld, llvm, lz4, libmysqlclient, openssl, perl
, poco, protobuf, rapidjson, re2, rdkafka, readline, sparsehash, unixODBC , poco, protobuf, python3, rapidjson, re2, rdkafka, readline, sparsehash, unixODBC
, xxHash, zstd , xxHash, zstd
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "clickhouse"; pname = "clickhouse";
version = "19.17.9.60"; version = "20.5.2.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "yandex"; owner = "ClickHouse";
repo = "ClickHouse"; repo = "ClickHouse";
rev = "v${version}-stable"; rev = "v${version}-stable";
sha256 = "0k1ncn7i4szpw4jlhv3zmw6mrkkm8qfs39nj1zbawjqrkgnw70kg"; fetchSubmodules = true;
sha256 = "15b499czsv727wwdb1i1ja5wfsk6ii3pqpk6dlqic9cdmkh8c8ic";
}; };
nativeBuildInputs = [ cmake libtool lldClang.bintools ninja ]; nativeBuildInputs = [ cmake libtool lldClang.bintools ninja ];
buildInputs = [ buildInputs = [
boost brotli capnproto cctz clang-unwrapped double-conversion gperftools boost brotli capnproto cctz clang-unwrapped double-conversion
icu jemalloc libcpuid libxml2 lld llvm lz4 libmysqlclient openssl icu jemalloc libcpuid libxml2 lld llvm lz4 libmysqlclient openssl perl
poco protobuf rapidjson re2 rdkafka readline sparsehash unixODBC poco protobuf python3 rapidjson re2 rdkafka readline sparsehash unixODBC
xxHash zstd xxHash zstd
]; ];
postPatch = ''
patchShebangs src/
substituteInPlace contrib/openssl-cmake/CMakeLists.txt \
--replace '/usr/bin/env perl' perl
substituteInPlace src/Storages/System/StorageSystemLicenses.sh \
--replace 'git rev-parse --show-toplevel' '$src'
substituteInPlace utils/check-style/check-duplicate-includes.sh \
--replace 'git rev-parse --show-toplevel' '$src'
substituteInPlace utils/check-style/check-ungrouped-includes.sh \
--replace 'git rev-parse --show-toplevel' '$src'
substituteInPlace utils/generate-ya-make/generate-ya-make.sh \
--replace 'git rev-parse --show-toplevel' '$src'
substituteInPlace utils/list-licenses/list-licenses.sh \
--replace 'git rev-parse --show-toplevel' '$src'
substituteInPlace utils/check-style/check-style \
--replace 'git rev-parse --show-toplevel' '$src'
'';
cmakeFlags = [ cmakeFlags = [
"-DENABLE_TESTS=OFF" "-DENABLE_TESTS=OFF"
"-DUNBUNDLED=ON"
"-DUSE_STATIC_LIBRARIES=OFF"
]; ];
postPatch = ''
patchShebangs dbms/programs/clang/copy_headers.sh
'';
postInstall = '' postInstall = ''
rm -rf $out/share/clickhouse-test rm -rf $out/share/clickhouse-test
@ -46,7 +60,7 @@ stdenv.mkDerivation rec {
hardeningDisable = [ "format" ]; hardeningDisable = [ "format" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = "https://clickhouse.yandex/"; homepage = "https://clickhouse.tech/";
description = "Column-oriented database management system"; description = "Column-oriented database management system";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ orivej ]; maintainers = with maintainers; [ orivej ];

View File

@ -15774,7 +15774,7 @@ in
clickhouse = callPackage ../servers/clickhouse { clickhouse = callPackage ../servers/clickhouse {
# clickhouse doesn't build on llvm8. # clickhouse doesn't build on llvm8.
inherit (llvmPackages_7) clang-unwrapped lld lldClang llvm; inherit (llvmPackages_9) clang-unwrapped lld lldClang llvm;
}; };
couchdb = callPackage ../servers/http/couchdb { couchdb = callPackage ../servers/http/couchdb {