clickhouse: fix non-x86 build (#141009)

* clickhouse: fix non-x86 build

libcpuid is only needed, and only available, on x86.
This commit is contained in:
Kaz Wesley 2021-10-10 10:55:21 -07:00 committed by GitHub
parent 9d7bd72109
commit 4172adde12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,10 +22,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ cmake libtool llvm-bintools ninja ];
buildInputs = [
boost brotli capnproto cctz clang-unwrapped double-conversion
icu jemalloc libcpuid libxml2 lld llvm lz4 libmysqlclient openssl perl
icu jemalloc libxml2 lld llvm lz4 libmysqlclient openssl perl
poco protobuf python3 rapidjson re2 rdkafka readline sparsehash unixODBC
xxHash zstd
];
] ++ lib.optional stdenv.hostPlatform.isx86 libcpuid;
postPatch = ''
patchShebangs src/