Add elasticsearch 0.20.5

This commit is contained in:
Rob Vermaas 2013-03-07 12:36:29 +01:00
parent 415b292afc
commit 03519851bc
3 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,21 @@
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "elasticsearch-0.20.5";
src = fetchurl {
url = "https://download.elasticsearch.org/elasticsearch/elasticsearch/${name}.tar.gz";
sha256 = "0r0h9znyflajps1k8hl9naixhg1gqmhz7glc009pzzv94ncdzrq1";
};
patches = [ ./es-home.patch ];
installPhase = ''
mkdir -p $out
cp -R bin config lib $out
'';
meta = {
description = "Open Source, Distributed, RESTful Search Engine";
license = "ASL2.0";
};
}

View File

@ -0,0 +1,20 @@
diff -rc elasticsearch-0.20.5/bin/elasticsearch elasticsearch-0.20.5-new/bin/elasticsearch
*** elasticsearch-0.20.5/bin/elasticsearch 2013-03-07 12:16:31.152494626 +0100
--- elasticsearch-0.20.5-new/bin/elasticsearch 2013-03-07 12:24:41.076081272 +0100
***************
*** 62,68 ****
done
# determine elasticsearch home
! ES_HOME=`dirname "$SCRIPT"`/..
# make ELASTICSEARCH_HOME absolute
ES_HOME=`cd "$ES_HOME"; pwd`
--- 62,68 ----
done
# determine elasticsearch home
! ES_HOME=${ES_HOME:=`dirname "$SCRIPT"`/..}
# make ELASTICSEARCH_HOME absolute
ES_HOME=`cd "$ES_HOME"; pwd`

View File

@ -704,6 +704,8 @@ let
efibootmgr = callPackage ../tools/system/efibootmgr { }; efibootmgr = callPackage ../tools/system/efibootmgr { };
elasticsearch = callPackage ../servers/search/elasticsearch { };
enblendenfuse = callPackage ../tools/graphics/enblend-enfuse { enblendenfuse = callPackage ../tools/graphics/enblend-enfuse {
boost = boost149; boost = boost149;
}; };