lol

elasticsearch6*: remove

ajs124 09a6672b 82ebf4df

+7 -122
-15
nixos/tests/elk.nix
··· 268 268 ''; 269 269 }) { inherit pkgs system; }; 270 270 in { 271 - ELK-6 = mkElkTest "elk-6-oss" { 272 - name = "elk-6-oss"; 273 - elasticsearch = pkgs.elasticsearch6-oss; 274 - logstash = pkgs.logstash6-oss; 275 - kibana = pkgs.kibana6-oss; 276 - journalbeat = pkgs.journalbeat6; 277 - metricbeat = pkgs.metricbeat6; 278 - }; 279 271 # We currently only package upstream binaries. 280 272 # Feel free to package an SSPL licensed source-based package! 281 273 # ELK-7 = mkElkTest "elk-7-oss" { ··· 287 279 # metricbeat = pkgs.metricbeat7; 288 280 # }; 289 281 unfree = lib.dontRecurseIntoAttrs { 290 - ELK-6 = mkElkTest "elk-6" { 291 - elasticsearch = pkgs.elasticsearch6; 292 - logstash = pkgs.logstash6; 293 - kibana = pkgs.kibana6; 294 - journalbeat = pkgs.journalbeat6; 295 - metricbeat = pkgs.metricbeat6; 296 - }; 297 282 ELK-7 = mkElkTest "elk-7" { 298 283 elasticsearch = pkgs.elasticsearch7; 299 284 logstash = pkgs.logstash7;
-76
pkgs/servers/search/elasticsearch/6.x.nix
··· 1 - { elk6Version 2 - , enableUnfree ? true 3 - , lib, stdenv 4 - , fetchurl 5 - , makeWrapper 6 - , jre_headless 7 - , util-linux, gnugrep, coreutils 8 - , libxcrypt 9 - , autoPatchelfHook 10 - , zlib 11 - }: 12 - 13 - with lib; 14 - 15 - stdenv.mkDerivation (rec { 16 - version = elk6Version; 17 - pname = "elasticsearch${optionalString (!enableUnfree) "-oss"}"; 18 - 19 - src = fetchurl { 20 - url = "https://artifacts.elastic.co/downloads/elasticsearch/${pname}-${version}.tar.gz"; 21 - sha256 = 22 - if enableUnfree 23 - then "1hkcgqsrnnx3zjpgar4424mxfaxrx0zbrp7n7n0dlbhphshwnkmd" 24 - else "1pglg60aigy31xmpfchnxcc04nd18zwc3av4m0kyp00yk5mnlyqm"; 25 - }; 26 - 27 - patches = [ ./es-home-6.x.patch ]; 28 - 29 - postPatch = '' 30 - substituteInPlace bin/elasticsearch-env --replace \ 31 - "ES_CLASSPATH=\"\$ES_HOME/lib/*\"" \ 32 - "ES_CLASSPATH=\"$out/lib/*\"" 33 - 34 - substituteInPlace bin/elasticsearch-cli --replace \ 35 - "ES_CLASSPATH=\"\$ES_CLASSPATH:\$ES_HOME/\$additional_classpath_directory/*\"" \ 36 - "ES_CLASSPATH=\"\$ES_CLASSPATH:$out/\$additional_classpath_directory/*\"" 37 - ''; 38 - 39 - nativeBuildInputs = [ makeWrapper ]; 40 - buildInputs = [ jre_headless util-linux ] 41 - ++ optionals enableUnfree [ zlib libxcrypt ]; 42 - 43 - installPhase = '' 44 - mkdir -p $out 45 - cp -R bin config lib modules plugins $out 46 - 47 - chmod -x $out/bin/*.* 48 - 49 - wrapProgram $out/bin/elasticsearch \ 50 - --prefix PATH : "${makeBinPath [ util-linux gnugrep coreutils ]}" \ 51 - --set JAVA_HOME "${jre_headless}" 52 - 53 - wrapProgram $out/bin/elasticsearch-plugin --set JAVA_HOME "${jre_headless}" 54 - ''; 55 - 56 - passthru = { inherit enableUnfree; }; 57 - 58 - meta = { 59 - description = "Open Source, Distributed, RESTful Search Engine"; 60 - sourceProvenance = with lib.sourceTypes; [ binaryBytecode ]; 61 - license = if enableUnfree then licenses.elastic else licenses.asl20; 62 - platforms = platforms.unix; 63 - maintainers = with maintainers; [ apeschar basvandijk ]; 64 - }; 65 - } // optionalAttrs enableUnfree { 66 - dontPatchELF = true; 67 - nativeBuildInputs = [ makeWrapper ] 68 - ++ optional stdenv.isLinux autoPatchelfHook; 69 - runtimeDependencies = [ zlib ]; 70 - postFixup = lib.optionalString stdenv.isLinux '' 71 - for exe in $(find $out/modules/x-pack-ml/platform/linux-x86_64/bin -executable -type f); do 72 - echo "patching $exe..." 73 - patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$exe" 74 - done 75 - ''; 76 - })
-13
pkgs/servers/search/elasticsearch/plugins.nix
··· 39 39 url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/${pluginName}/${pluginName}-${version}.zip"; 40 40 sha256 = 41 41 if version == "7.17.4" then "a4e881d86694ae70ab6b18f72ea700415971200145d33d438e57c0374d9fc16f" 42 - else if version == "6.8.21" then "06b1pavyggzfp4wwdql0q9nm3r7i9px9cagp4yh4nhxhnk4w5fiq" 43 42 else throw "unsupported version ${version} for plugin ${pluginName}"; 44 43 }; 45 44 meta = with lib; { ··· 56 55 url = "https://github.com/vhyza/elasticsearch-${pluginName}/releases/download/v${version}/elasticsearch-${pluginName}-${version}-plugin.zip"; 57 56 sha256 = 58 57 if version == "7.17.3" then "1835f374230cb17193859cee22ac90e3d7a67fb41a55fd4578e840d708287a08" 59 - else if version == "6.8.21" then "0m80cn7vkcvk95v4pdmi6vk5ww7p01k0hj2iqb9g870vs6x2qjzv" 60 58 else throw "unsupported version ${version} for plugin ${pluginName}"; 61 59 }; 62 60 meta = with lib; { ··· 73 71 url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/${pluginName}/${pluginName}-${version}.zip"; 74 72 sha256 = 75 73 if version == "7.17.4" then "1c8175b2dac54277c1f41981fb4a784829e74e6e74268381fe0c27bc6652704b" 76 - else if version == "6.8.21" then "07w8s4a5gvr9lzjzf629y8rx3kvs6zd1vl07ksw1paghp42yb354" 77 74 else throw "unsupported version ${version} for plugin ${pluginName}"; 78 75 }; 79 76 meta = with lib; { ··· 90 87 url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/${pluginName}/${pluginName}-${version}.zip"; 91 88 sha256 = 92 89 if version == "7.17.4" then "702e446997bde5cb38af120a1cb4271d976fdd23444be49e53b6be3801d845a9" 93 - else if version == "6.8.21" then "1kdpbrasxwr3dn21zjrklp1s389rwa51fairygdwl8px9liwwfa5" 94 90 else throw "unsupported version ${version} for plugin ${pluginName}"; 95 91 }; 96 92 meta = with lib; { ··· 107 103 url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/${pluginName}/${pluginName}-${version}.zip"; 108 104 sha256 = 109 105 if version == "7.17.4" then "7d1574a585a9db0988ee248159d51f62cce5578a8c082096ef3e26efdb24aee7" 110 - else if version == "6.8.21" then "0v31yyhjcdlqnjw1f9kihh7z3c6d31whc57hqqd1dn579n4s9rlz" 111 106 else throw "unsupported version ${version} for plugin ${pluginName}"; 112 107 }; 113 108 meta = with lib; { ··· 124 119 url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/${pluginName}/${pluginName}-${esVersion}.zip"; 125 120 sha256 = 126 121 if version == "7.17.4" then "cad923a662db705d40ca29698aa118e9e4cc50ae564c426a76d5acb777a4f57c" 127 - else if version == "6.8.21" then "0sfh1az30q4f34zxig2fz8wn9gk53fmmxyg5pbi1svn9761p5awq" 128 122 else throw "unsupported version ${version} for plugin ${pluginName}"; 129 123 }; 130 124 meta = with lib; { ··· 141 135 url = "https://artifacts.elastic.co/downloads/elasticsearch-plugins/${pluginName}/${pluginName}-${esVersion}.zip"; 142 136 sha256 = 143 137 if version == "7.17.4" then "a50be4cea5c68ad7615f87d672ba160d027fdfde2be0578bb2dabd6384cc8108" 144 - else if version == "6.8.21" then "00lwj00rfdk6850gk1n86chiz2w6afpqn7jn588jdbwv41qh5mrv" 145 138 else throw "unsupported version ${version} for plugin ${pluginName}"; 146 139 }; 147 140 meta = with lib; { ··· 158 151 version = 159 152 # https://docs.search-guard.com/latest/search-guard-versions 160 153 if esVersion == "7.17.3" then "${esVersion}-53.1.0" 161 - else if esVersion == "6.8.21" then "${esVersion}-25.6" 162 154 else throw "unsupported version ${esVersion} for plugin ${pluginName}"; 163 155 src = 164 156 if esVersion == "7.17.3" then 165 157 fetchurl { 166 158 url = "https://maven.search-guard.com/search-guard-suite-release/com/floragunn/search-guard-suite-plugin/${version}/search-guard-suite-plugin-${version}.zip"; 167 159 sha256 = "b49b24f7b74043cb5bab93f18316ea71656a7668e61bf063ccaa7b0ee2302a31"; 168 - } 169 - else if esVersion == "6.8.21" then 170 - fetchurl { 171 - url = "https://maven.search-guard.com/search-guard-release/com/floragunn/search-guard-6/${version}/search-guard-6-${version}.zip"; 172 - sha256 = "19nj513wigwd0mzq747zax4fzvv5vi24f7j0636rydd9iv9cyhg2"; 173 160 } 174 161 else throw "unsupported version ${version} for plugin ${pluginName}"; 175 162 meta = with lib; {
+5
pkgs/top-level/aliases.nix
··· 411 411 elasticmq = throw "elasticmq has been removed in favour of elasticmq-server-bin"; # Added 2021-01-17 412 412 elasticsearch7-oss = throw "elasticsearch7-oss has been removed, as the distribution is no longer provided by upstream. https://github.com/NixOS/nixpkgs/pull/114456"; # Added 2021-06-09 413 413 414 + elasticsearch6 = throw "elasticsearch6 has been removed because it reached end of life"; # Added 2022-10-04 415 + elasticsearch6-oss = throw "elasticsearch6-oss has been removed because it reached end of life"; # Added 2022-10-04 416 + elasticsearch6Plugins = throw "elasticsearch6Plugins has been removed because it reached end of life"; # Added 2022-10-04 417 + elasticsearch7Plugins = elasticsearchPlugins; 418 + 414 419 # Electron 415 420 electron_3 = throw "electron_3 has been removed in favor of newer versions"; # added 2022-01-06 416 421 electron_4 = throw "electron_4 has been removed in favor of newer versions"; # added 2022-01-06
+2 -18
pkgs/top-level/all-packages.nix
··· 7152 7152 7153 7153 # The latest version used by elasticsearch, logstash, kibana and the the beats from elastic. 7154 7154 # When updating make sure to update all plugins or they will break! 7155 - elk6Version = "6.8.21"; 7156 7155 elk7Version = "7.17.4"; 7157 7156 7158 - elasticsearch6 = callPackage ../servers/search/elasticsearch/6.x.nix { 7159 - util-linux = util-linuxMinimal; 7160 - jre_headless = jre8_headless; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731 7161 - }; 7162 - elasticsearch6-oss = callPackage ../servers/search/elasticsearch/6.x.nix { 7163 - enableUnfree = false; 7164 - util-linux = util-linuxMinimal; 7165 - jre_headless = jre8_headless; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731 7166 - }; 7167 7157 elasticsearch7 = callPackage ../servers/search/elasticsearch/7.x.nix { 7168 7158 util-linux = util-linuxMinimal; 7169 7159 jre_headless = jdk11_headless; # TODO: remove override https://github.com/NixOS/nixpkgs/pull/89731 7170 7160 }; 7171 - elasticsearch = elasticsearch6; 7172 - elasticsearch-oss = elasticsearch6-oss; 7161 + elasticsearch = elasticsearch7; 7162 + elasticsearch-oss = elasticsearch7-oss; 7173 7163 7174 7164 elasticsearchPlugins = recurseIntoAttrs ( 7175 7165 callPackage ../servers/search/elasticsearch/plugins.nix { 7176 7166 elasticsearch = elasticsearch-oss; 7177 7167 } 7178 7168 ); 7179 - elasticsearch6Plugins = elasticsearchPlugins.override { 7180 - elasticsearch = elasticsearch6-oss; 7181 - }; 7182 - elasticsearch7Plugins = elasticsearchPlugins.override { 7183 - elasticsearch = elasticsearch7; 7184 - }; 7185 7169 7186 7170 elasticsearch-curator = callPackage ../tools/admin/elasticsearch-curator { }; 7187 7171