2014-10-14 18:05:23 +01:00
|
|
|
{ stdenv, fetchurl, conf ? null }:
|
2014-09-15 10:33:07 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "kibana-${version}";
|
2014-10-14 18:05:23 +01:00
|
|
|
version = "3.1.1";
|
2014-09-15 10:33:07 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-10-14 18:05:23 +01:00
|
|
|
url = "https://download.elasticsearch.org/kibana/kibana/${name}.tar.gz";
|
|
|
|
sha256 = "195x6zq9x16nlh2akvn6z0kp8qnba4vq90yrysiafgv8dmw34p5b";
|
2014-09-15 10:33:07 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = ["unpackPhase" "installPhase"];
|
2014-10-14 18:05:23 +01:00
|
|
|
|
2014-09-15 10:33:07 +01:00
|
|
|
installPhase = ''
|
2014-10-14 18:05:23 +01:00
|
|
|
mkdir -p $out
|
|
|
|
mv * $out/
|
|
|
|
${optionalString (conf != null) "cp ${conf} $out/config.js"}
|
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
|
|
|
};
|
|
|
|
}
|