2015-09-18 19:46:51 +01:00
|
|
|
{ stdenv, makeWrapper, fetchurl, nodejs, coreutils, which }:
|
2014-09-15 10:33:07 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "kibana-${version}";
|
2015-09-21 23:27:40 +01:00
|
|
|
version = "4.1.2";
|
2014-09-15 10:33:07 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-09-29 19:17:22 +01:00
|
|
|
url = "http://download.elastic.co/kibana/kibana-snapshot/${name}-snapshot-linux-x86.tar.gz";
|
|
|
|
sha256 = "00ag4wnlw6h2j6zcz0irz6j1s51fr9ix2g1smrhrdw44z5gb6wrh";
|
2014-09-15 10:33:07 +01:00
|
|
|
};
|
|
|
|
|
2015-09-18 19:46:51 +01:00
|
|
|
buildInputs = [ makeWrapper ];
|
2014-10-14 18:05:23 +01:00
|
|
|
|
2014-09-15 10:33:07 +01:00
|
|
|
installPhase = ''
|
2015-09-18 19:46:51 +01: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"
|
2014-09-15 10:33:07 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Visualize logs and time-stamped data";
|
|
|
|
homepage = http://www.elasticsearch.org/overview/kibana;
|
|
|
|
license = licenses.asl20;
|
2014-10-14 18:05:23 +01:00
|
|
|
maintainers = with maintainers; [ offline rickynils ];
|
2014-09-15 10:33:07 +01:00
|
|
|
};
|
|
|
|
}
|