Add elasticsearch 0.20.5
This commit is contained in:
parent
415b292afc
commit
03519851bc
21
pkgs/servers/search/elasticsearch/default.nix
Normal file
21
pkgs/servers/search/elasticsearch/default.nix
Normal 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";
|
||||
};
|
||||
}
|
20
pkgs/servers/search/elasticsearch/es-home.patch
Normal file
20
pkgs/servers/search/elasticsearch/es-home.patch
Normal 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`
|
@ -704,6 +704,8 @@ let
|
||||
|
||||
efibootmgr = callPackage ../tools/system/efibootmgr { };
|
||||
|
||||
elasticsearch = callPackage ../servers/search/elasticsearch { };
|
||||
|
||||
enblendenfuse = callPackage ../tools/graphics/enblend-enfuse {
|
||||
boost = boost149;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user