elasticsearch 7.17.4 -> 8.7.1 https://repology.org/project/elasticsearch/versions attrpath: elasticsearch Checking auto update branch... No auto update branch exists Old version 7.17.4" not present in master derivation file with contents: { elk7Version , lib , stdenv , fetchurl , makeWrapper , jre_headless , util-linux , gnugrep , coreutils , autoPatchelfHook , zlib }: with lib; let info = splitString "-" stdenv.hostPlatform.system; arch = elemAt info 0; plat = elemAt info 1; shas = { x86_64-linux = "f49d8fce010db83e6a89462535c71ba11a1153589038a7db430fc7db44178a55d5538dea80e6d4c690f4f0e838168965297c6a3ae31fbc5020af4d966067a90c"; x86_64-darwin = "b7d87bfa2e1793354bfb51ea11bbeeb29cfba62633288c3ed4ab9eecc05d05953db9446e7ca46ffe63f5aa646a0534fb8f4aa897a59fa2ae7e200b824576d915"; aarch64-linux = "aa9624c1777a8530f5eca4f75385de1a95ba8db3d56810cc1e134434438181580c32f5f46ab79094742d077e9b741cfb2549cda549147123dae14109e27a1443"; aarch64-darwin = "191e04a1e440a5ad679d04f6d852a6ab26cb14870b8af38a2ab6a14251a7b6d1ed7646e33b87f4971bb04a68d767abaecaa8dba07e3ae29211f0a358bb499d61"; }; in stdenv.mkDerivation rec { pname = "elasticsearch"; version = elk7Version; src = fetchurl { url = "https://artifacts.elastic.co/downloads/elasticsearch/${pname}-${version}-${plat}-${arch}.tar.gz"; sha512 = shas.${stdenv.hostPlatform.system} or (throw "Unknown architecture"); }; patches = [ ./es-home-6.x.patch ]; postPatch = '' substituteInPlace bin/elasticsearch-env --replace \ "ES_CLASSPATH=\"\$ES_HOME/lib/*\"" \ "ES_CLASSPATH=\"$out/lib/*\"" substituteInPlace bin/elasticsearch-cli --replace \ "ES_CLASSPATH=\"\$ES_CLASSPATH:\$ES_HOME/\$additional_classpath_directory/*\"" \ "ES_CLASSPATH=\"\$ES_CLASSPATH:$out/\$additional_classpath_directory/*\"" ''; nativeBuildInputs = [ makeWrapper ] ++ lib.optional (!stdenv.hostPlatform.isDarwin) autoPatchelfHook; buildInputs = [ jre_headless util-linux zlib ]; runtimeDependencies = [ zlib ]; installPhase = '' mkdir -p $out cp -R bin config lib modules plugins $out chmod +x $out/bin/* substituteInPlace $out/bin/elasticsearch \ --replace 'bin/elasticsearch-keystore' "$out/bin/elasticsearch-keystore" wrapProgram $out/bin/elasticsearch \ --prefix PATH : "${makeBinPath [ util-linux coreutils gnugrep ]}" \ --set JAVA_HOME "${jre_headless}" wrapProgram $out/bin/elasticsearch-plugin --set JAVA_HOME "${jre_headless}" ''; passthru = { enableUnfree = true; }; meta = { description = "Open Source, Distributed, RESTful Search Engine"; sourceProvenance = with lib.sourceTypes; [ binaryBytecode binaryNativeCode ]; license = licenses.elastic; platforms = platforms.unix; maintainers = with maintainers; [ apeschar basvandijk ]; }; }