12 stdenvNoCC.mkDerivation (finalAttrs: {
17 url = "https://artifacts.opensearch.org/releases/bundle/opensearch/${finalAttrs.version}/opensearch-${finalAttrs.version}-linux-x64.tar.gz";
18 hash = "sha256-AUuquYXRwI4JvEiUdx/l3Tk/kxENrXG1RtzBzrsrZyg=";
33 cp -R bin config lib modules plugins $out
35 substituteInPlace $out/bin/opensearch \
36 --replace 'bin/opensearch-keystore' "$out/bin/opensearch-keystore"
38 wrapProgram $out/bin/opensearch \
39 --prefix PATH : "${lib.makeBinPath [ gnugrep coreutils ]}" \
40 --prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ stdenv.cc.cc.lib ]}:$out/plugins/opensearch-knn/lib/" \
41 --set JAVA_HOME "${jre_headless}"
43 wrapProgram $out/bin/opensearch-plugin --set JAVA_HOME "${jre_headless}"
45 rm $out/bin/opensearch-cli
50 passthru.tests = nixosTests.opensearch;
53 description = "Open Source, Distributed, RESTful Search Engine";
54 homepage = "https://github.com/opensearch-project/OpenSearch";
55 license = lib.licenses.asl20;
56 maintainers = with lib.maintainers; [ shyim ];
57 platforms = lib.platforms.unix;
58 sourceProvenance = with lib.sourceTypes; [