diff --git a/pkgs/by-name/cl/clickhouse/package.nix b/pkgs/by-name/cl/clickhouse/package.nix index 03f527affb62..a5474457a6a6 100644 --- a/pkgs/by-name/cl/clickhouse/package.nix +++ b/pkgs/by-name/cl/clickhouse/package.nix @@ -145,6 +145,12 @@ llvmPackages_19.stdenv.mkDerivation (finalAttrs: { --replace-fail "trace" "warning" ''; + # Basic smoke test + doCheck = true; + checkPhase = '' + $NIX_BUILD_TOP/$sourceRoot/build/programs/clickhouse local --query 'SELECT 1' | grep 1 + ''; + # Builds in 7+h with 2 cores, and ~20m with a big-parallel builder. requiredSystemFeatures = [ "big-parallel" ];