druid: 30.0.0 -> 31.0.0 (#351877)

This commit is contained in:
Leona Maroni 2024-11-16 22:20:41 +01:00 committed by GitHub
commit 3013234aef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 9 deletions

View File

@ -38,7 +38,7 @@ let
tests = {
default = testsForPackage {
druidPackage = pkgs.druid;
hadoopPackage = pkgs.hadoop_3_2;
hadoopPackage = pkgs.hadoop_3_3;
};
};
testsForPackage =

View File

@ -2,6 +2,7 @@
lib,
stdenv,
fetchurl,
mysql_jdbc,
extensions ? { },
libJars ? [ ],
nixosTests,
@ -19,16 +20,11 @@ let
in
stdenv.mkDerivation (finalAttrs: {
pname = "apache-druid";
version = "30.0.0";
version = "31.0.0";
src = fetchurl {
url = "mirror://apache/druid/${finalAttrs.version}/apache-druid-${finalAttrs.version}-bin.tar.gz";
hash = "sha256-mRYorVkNzM94LP53G78eW20N5UsvMP7Lv4rAysmPwXw=";
};
mysqlConnector = fetchurl {
url = "mirror://maven/mysql/mysql-connector-java/5.1.48/mysql-connector-java-5.1.48.jar";
hash = "sha256-VuJsqqOCH1rkr0T5x09mz4uE6gFRatOAPLsOkEm27Kg=";
hash = "sha256-xppAoKNS/qB8WVMwBPxxHbOy5uDGl3IxrCWV1T+YQkE=";
};
dontBuild = true;
@ -61,7 +57,7 @@ stdenv.mkDerivation (finalAttrs: {
runHook preInstall
mkdir $out
mv * $out
${optionalString mysqlSupport "cp ${finalAttrs.mysqlConnector} $out/extensions/mysql-metadata-storage"}
${optionalString mysqlSupport "ln -s ${mysql_jdbc}/share/java/mysql-connector-java.jar $out/extensions/mysql-metadata-storage"}
${finalAttrs.loadExtensions}
${finalAttrs.loadJars}
runHook postInstall