elasticsearchPlugins: style fixups

This commit is contained in:
ash lea 2019-11-10 00:26:56 -08:00
parent 2e3d3cff7e
commit a23730cf9a
1 changed files with 3 additions and 8 deletions

View File

@ -16,6 +16,7 @@ let
}: }:
stdenv.mkDerivation (a // { stdenv.mkDerivation (a // {
inherit installPhase; inherit installPhase;
pname = "elasticsearch-${pluginName}";
dontUnpack = true; dontUnpack = true;
buildInputs = [ unzip ]; buildInputs = [ unzip ];
meta = a.meta // { meta = a.meta // {
@ -26,11 +27,10 @@ let
in { in {
analysis-lemmagen = esPlugin rec { analysis-lemmagen = esPlugin rec {
name = "elasticsearch-analysis-lemmagen-${version}"; pluginName = "analysis-lemmagen";
pluginName = "elasticsearch-analysis-lemmagen";
version = esVersion; version = esVersion;
src = fetchurl { src = fetchurl {
url = "https://github.com/vhyza/${pluginName}/releases/download/v${version}/${name}-plugin.zip"; url = "https://github.com/vhyza/${pluginName}/releases/download/v${version}/${pluginName}-${version}-plugin.zip";
sha256 = sha256 =
if version == "7.3.1" then "1nb82z6s94mzdx1srb1pwj7cpzs8w74njap0xiqn7sg5ylk6adm8" if version == "7.3.1" then "1nb82z6s94mzdx1srb1pwj7cpzs8w74njap0xiqn7sg5ylk6adm8"
else if version == "6.8.3" then "12bshvp01pp2lgwd0cn9l58axg8gdimsh4g9wfllxi1bdpv4cy53" else if version == "6.8.3" then "12bshvp01pp2lgwd0cn9l58axg8gdimsh4g9wfllxi1bdpv4cy53"
@ -44,7 +44,6 @@ in {
}; };
discovery-ec2 = esPlugin rec { discovery-ec2 = esPlugin rec {
name = "elasticsearch-discovery-ec2-${version}";
pluginName = "discovery-ec2"; pluginName = "discovery-ec2";
version = esVersion; version = esVersion;
src = fetchurl { src = fetchurl {
@ -62,7 +61,6 @@ in {
}; };
ingest-attachment = esPlugin rec { ingest-attachment = esPlugin rec {
name = "elasticsearch-ingest-attachment-${version}";
pluginName = "ingest-attachment"; pluginName = "ingest-attachment";
version = esVersion; version = esVersion;
src = fetchurl { src = fetchurl {
@ -80,7 +78,6 @@ in {
}; };
repository-s3 = esPlugin rec { repository-s3 = esPlugin rec {
name = "elasticsearch-repository-s3-${version}";
pluginName = "repository-s3"; pluginName = "repository-s3";
version = esVersion; version = esVersion;
src = fetchurl { src = fetchurl {
@ -98,7 +95,6 @@ in {
}; };
repository-gcs = esPlugin rec { repository-gcs = esPlugin rec {
name = "elasticsearch-repository-gcs-${version}";
pluginName = "repository-gcs"; pluginName = "repository-gcs";
version = esVersion; version = esVersion;
src = fetchurl { src = fetchurl {
@ -118,7 +114,6 @@ in {
search-guard = let search-guard = let
majorVersion = lib.head (builtins.splitVersion esVersion); majorVersion = lib.head (builtins.splitVersion esVersion);
in esPlugin rec { in esPlugin rec {
name = "elasticsearch-search-guard-${version}";
pluginName = "search-guard"; pluginName = "search-guard";
version = version =
if esVersion == "7.3.1" then "${esVersion}-37.0.0" if esVersion == "7.3.1" then "${esVersion}-37.0.0"