clickhouse: Split existing package into lts.nix and generic.nix

This commit is contained in:
Jonathan Davies
2025-08-14 15:35:18 +00:00
parent bdb6b6078e
commit d5228f9ede
3 changed files with 17 additions and 4 deletions
@@ -1,3 +1,9 @@
{
lts ? false,
version,
hash,
}:
{
lib,
stdenv,
@@ -20,16 +26,16 @@
}:
llvmPackages_19.stdenv.mkDerivation (finalAttrs: {
pname = "clickhouse";
version = "25.3.5.42";
pname = "clickhouse" + lib.optionalString lts "-lts";
inherit version;
src = fetchFromGitHub rec {
owner = "ClickHouse";
repo = "ClickHouse";
tag = "v${finalAttrs.version}-lts";
tag = "v${finalAttrs.version}";
fetchSubmodules = true;
name = "clickhouse-${tag}.tar.gz";
hash = "sha256-LvGl9XJK6Emt7HnV/Orp7qEmJSr3TBJZtApL6GrWIMg=";
inherit hash;
postFetch = ''
# delete files that make the source too big
rm -rf $out/contrib/llvm-project/llvm/test
+5
View File
@@ -0,0 +1,5 @@
import ./generic.nix {
version = "25.3.5.42-lts";
hash = "sha256-LvGl9XJK6Emt7HnV/Orp7qEmJSr3TBJZtApL6GrWIMg=";
lts = true;
}
+2
View File
@@ -2637,6 +2637,8 @@ with pkgs;
ckb-next = libsForQt5.callPackage ../tools/misc/ckb-next { };
clickhouse-lts = callPackage ../by-name/cl/clickhouse/lts.nix { };
cmdpack = callPackages ../tools/misc/cmdpack { };
cocoapods = callPackage ../development/tools/cocoapods { };