Philipp Herzog
2025-11-14 09:50:01 +01:00
committed by Philipp Herzog
parent c6066d53f3
commit 754097dbc4
2 changed files with 4 additions and 3 deletions

View File

@@ -210,6 +210,7 @@ in
ln -sfT "${cfg.package}/plugins" "${cfg.dataDir}/plugins"
ln -sfT ${cfg.package}/lib ${cfg.dataDir}/lib
ln -sfT ${cfg.package}/modules ${cfg.dataDir}/modules
ln -sfT ${cfg.package}/agent ${cfg.dataDir}/agent
# opensearch needs to create the opensearch.keystore in the config directory
# so this directory needs to be writable.

View File

@@ -12,11 +12,11 @@
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "opensearch";
version = "2.19.2";
version = "3.5.0";
src = fetchurl {
url = "https://artifacts.opensearch.org/releases/bundle/opensearch/${finalAttrs.version}/opensearch-${finalAttrs.version}-linux-x64.tar.gz";
hash = "sha256-EaOx8vs3y00ln7rUiaCGoD+HhiQY4bhQAzu18VfaTYw=";
hash = "sha256-0d6TQU1LTE983CsYbaK4fNuC86VAx23XD2xR6y2NuHw=";
};
nativeBuildInputs = [
@@ -31,7 +31,7 @@ stdenvNoCC.mkDerivation (finalAttrs: {
runHook preInstall
mkdir -p $out
cp -R bin config lib modules plugins $out
cp -R bin config lib modules plugins agent $out
substituteInPlace $out/bin/opensearch \
--replace 'bin/opensearch-keystore' "$out/bin/opensearch-keystore"