clickhouse: Split existing package into lts.nix and generic.nix
This commit is contained in:
@@ -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
|
||||
@@ -0,0 +1,5 @@
|
||||
import ./generic.nix {
|
||||
version = "25.3.5.42-lts";
|
||||
hash = "sha256-LvGl9XJK6Emt7HnV/Orp7qEmJSr3TBJZtApL6GrWIMg=";
|
||||
lts = true;
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user