2014-07-11 18:50:02 +02:00
|
|
|
{ stdenv, fetchurl }:
|
2012-07-11 13:23:14 +02:00
|
|
|
|
2014-07-11 18:50:02 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "1.4.2";
|
|
|
|
name = "logstash-${version}";
|
2012-07-11 13:23:14 +02:00
|
|
|
|
2014-07-11 18:50:02 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.elasticsearch.org/logstash/logstash/logstash-${version}.tar.gz";
|
|
|
|
sha256 = "0sc0bwyf96fzs5h3d7ii65v9vvpfbm7w67vk1im9djnlz0d1ggnm";
|
|
|
|
};
|
2012-07-11 13:23:14 +02:00
|
|
|
|
2014-07-11 18:50:02 +02:00
|
|
|
dontBuild = true;
|
|
|
|
dontPatchELF = true;
|
|
|
|
dontStrip = true;
|
2014-07-14 18:54:20 +02:00
|
|
|
dontPatchShebangs = true;
|
2012-07-11 13:23:14 +02:00
|
|
|
|
2014-07-11 18:50:02 +02:00
|
|
|
installPhase = ''
|
2014-07-22 11:01:32 +02:00
|
|
|
mkdir -p $out/bin
|
|
|
|
mkdir -p $out/vendor
|
|
|
|
mkdir -p $out/lib
|
|
|
|
mkdir -p $out/locales
|
|
|
|
mkdir -p $out/patterns
|
2014-07-11 18:50:02 +02:00
|
|
|
cp -a bin $out
|
2014-07-14 18:54:20 +02:00
|
|
|
cp -a vendor $out
|
|
|
|
cp -a lib $out
|
|
|
|
cp -a locales $out
|
|
|
|
cp -a patterns $out
|
|
|
|
patchShebangs $out/bin
|
2014-07-11 18:50:02 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Open Source, Distributed, RESTful Search Engine";
|
|
|
|
homepage = http://www.elasticsearch.org;
|
2014-07-20 17:09:19 +02:00
|
|
|
license = stdenv.lib.licenses.asl20;
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.wjlroe ];
|
2014-07-11 18:50:02 +02:00
|
|
|
};
|
2012-07-11 13:23:14 +02:00
|
|
|
}
|