Skip to content

Commit 7876de7

Browse files
committed
druid: use mysql_jdbc directly
1 parent a98b8f6 commit 7876de7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pkgs/by-name/dr/druid/package.nix

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
lib,
33
stdenv,
44
fetchurl,
5+
mysql_jdbc,
56
extensions ? { },
67
libJars ? [ ],
78
nixosTests,
@@ -26,11 +27,6 @@ stdenv.mkDerivation (finalAttrs: {
2627
hash = "sha256-xppAoKNS/qB8WVMwBPxxHbOy5uDGl3IxrCWV1T+YQkE=";
2728
};
2829

29-
mysqlConnector = fetchurl {
30-
url = "mirror://maven/mysql/mysql-connector-java/5.1.48/mysql-connector-java-5.1.48.jar";
31-
hash = "sha256-VuJsqqOCH1rkr0T5x09mz4uE6gFRatOAPLsOkEm27Kg=";
32-
};
33-
3430
dontBuild = true;
3531

3632
loadExtensions = (
@@ -61,7 +57,7 @@ stdenv.mkDerivation (finalAttrs: {
6157
runHook preInstall
6258
mkdir $out
6359
mv * $out
64-
${optionalString mysqlSupport "cp ${finalAttrs.mysqlConnector} $out/extensions/mysql-metadata-storage"}
60+
${optionalString mysqlSupport "ln -s ${mysql_jdbc}/share/java/mysql-connector-java.jar $out/extensions/mysql-metadata-storage"}
6561
${finalAttrs.loadExtensions}
6662
${finalAttrs.loadJars}
6763
runHook postInstall

0 commit comments

Comments
 (0)