2015-09-18 18:46:51 +00:00
|
|
|
{ stdenv, makeWrapper, fetchurl, nodejs, coreutils, which }:
|
2014-09-15 09:33:07 +00:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "kibana-${version}";
|
2016-07-27 15:47:03 +00:00
|
|
|
version = "4.5.2";
|
2014-09-15 09:33:07 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-09-29 18:17:22 +00:00
|
|
|
url = "http://download.elastic.co/kibana/kibana-snapshot/${name}-snapshot-linux-x86.tar.gz";
|
2016-07-27 15:47:03 +00:00
|
|
|
sha256 = "1na8xh525znxaqjhxfvpx0q3rj85cjb6l9zlzd44dl31a9l117y4";
|
2014-09-15 09:33:07 +00:00
|
|
|
};
|
|
|
|
|
2015-09-18 18:46:51 +00:00
|
|
|
buildInputs = [ makeWrapper ];
|
2014-10-14 17:05:23 +00:00
|
|
|
|
2014-09-15 09:33:07 +00:00
|
|
|
installPhase = ''
|
2015-09-18 18:46:51 +00:00
|
|
|
mkdir -p $out/libexec/kibana $out/bin
|
|
|
|
mv * $out/libexec/kibana/
|
|
|
|
rm -r $out/libexec/kibana/node
|
|
|
|
makeWrapper $out/libexec/kibana/bin/kibana $out/bin/kibana \
|
|
|
|
--prefix PATH : "${nodejs}/bin:${coreutils}/bin:${which}/bin"
|
2016-02-13 14:01:45 +00:00
|
|
|
sed -i 's@NODE=.*@NODE=${nodejs}/bin/node@' $out/libexec/kibana/bin/kibana
|
2014-09-15 09:33:07 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Visualize logs and time-stamped data";
|
|
|
|
homepage = http://www.elasticsearch.org/overview/kibana;
|
|
|
|
license = licenses.asl20;
|
2014-10-14 17:05:23 +00:00
|
|
|
maintainers = with maintainers; [ offline rickynils ];
|
2014-09-15 09:33:07 +00:00
|
|
|
};
|
|
|
|
}
|