From 091189c6c2d3956fa649f51155e67f2fe77e48d6 Mon Sep 17 00:00:00 2001 From: Raghav Sood Date: Tue, 7 Jul 2020 16:57:20 +0000 Subject: [PATCH 1/2] clickhouse:20.5.2.7 --- pkgs/servers/clickhouse/default.nix | 44 +++++++++++++++++++---------- pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 30 insertions(+), 16 deletions(-) diff --git a/pkgs/servers/clickhouse/default.nix b/pkgs/servers/clickhouse/default.nix index 9521d470a0f1..99a866e8f14f 100644 --- a/pkgs/servers/clickhouse/default.nix +++ b/pkgs/servers/clickhouse/default.nix @@ -1,39 +1,53 @@ { stdenv, fetchFromGitHub, cmake, libtool, lldClang, ninja -, boost, brotli, capnproto, cctz, clang-unwrapped, double-conversion, gperftools -, icu, jemalloc, libcpuid, libxml2, lld, llvm, lz4, libmysqlclient, openssl -, poco, protobuf, rapidjson, re2, rdkafka, readline, sparsehash, unixODBC +, boost, brotli, capnproto, cctz, clang-unwrapped, double-conversion +, icu, jemalloc, libcpuid, libxml2, lld, llvm, lz4, libmysqlclient, openssl, perl +, poco, protobuf, python3, rapidjson, re2, rdkafka, readline, sparsehash, unixODBC , xxHash, zstd }: stdenv.mkDerivation rec { pname = "clickhouse"; - version = "19.17.9.60"; + version = "20.5.2.7"; src = fetchFromGitHub { - owner = "yandex"; + owner = "ClickHouse"; repo = "ClickHouse"; rev = "v${version}-stable"; - sha256 = "0k1ncn7i4szpw4jlhv3zmw6mrkkm8qfs39nj1zbawjqrkgnw70kg"; + fetchSubmodules = true; + sha256 = "15b499czsv727wwdb1i1ja5wfsk6ii3pqpk6dlqic9cdmkh8c8ic"; }; nativeBuildInputs = [ cmake libtool lldClang.bintools ninja ]; buildInputs = [ - boost brotli capnproto cctz clang-unwrapped double-conversion gperftools - icu jemalloc libcpuid libxml2 lld llvm lz4 libmysqlclient openssl - poco protobuf rapidjson re2 rdkafka readline sparsehash unixODBC + boost brotli capnproto cctz clang-unwrapped double-conversion + icu jemalloc libcpuid libxml2 lld llvm lz4 libmysqlclient openssl perl + poco protobuf python3 rapidjson re2 rdkafka readline sparsehash unixODBC 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 = [ "-DENABLE_TESTS=OFF" - "-DUNBUNDLED=ON" - "-DUSE_STATIC_LIBRARIES=OFF" ]; - postPatch = '' - patchShebangs dbms/programs/clang/copy_headers.sh - ''; - postInstall = '' rm -rf $out/share/clickhouse-test diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d86b58396672..3aee5d1f2cd3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15746,7 +15746,7 @@ in clickhouse = callPackage ../servers/clickhouse { # 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 { From 2761377682bdd30de0ceb94407b62e51f1368a4d Mon Sep 17 00:00:00 2001 From: Raghav Sood Date: Wed, 8 Jul 2020 08:19:43 +0000 Subject: [PATCH 2/2] clickhouse: update website --- pkgs/servers/clickhouse/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/clickhouse/default.nix b/pkgs/servers/clickhouse/default.nix index 99a866e8f14f..4fd5b6c4751e 100644 --- a/pkgs/servers/clickhouse/default.nix +++ b/pkgs/servers/clickhouse/default.nix @@ -60,7 +60,7 @@ stdenv.mkDerivation rec { hardeningDisable = [ "format" ]; meta = with stdenv.lib; { - homepage = "https://clickhouse.yandex/"; + homepage = "https://clickhouse.tech/"; description = "Column-oriented database management system"; license = licenses.asl20; maintainers = with maintainers; [ orivej ];