summary refs log tree commit diff
path: root/pkgs/development/tools/misc/kibana/default.nix
blob: dab04861d9fa9b97568eec8a67e6fe6a2d577536 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchurl, conf ? null }:

with stdenv.lib;

stdenv.mkDerivation rec {
  name = "kibana-${version}";
  version = "3.1.1";

  src = fetchurl {
    url = "https://download.elasticsearch.org/kibana/kibana/${name}.tar.gz";
    sha256 = "195x6zq9x16nlh2akvn6z0kp8qnba4vq90yrysiafgv8dmw34p5b";
  };

  phases = ["unpackPhase" "installPhase"];

  installPhase = ''
    mkdir -p $out
    mv * $out/
    ${optionalString (conf != null) "cp ${conf} $out/config.js"}
  '';

  meta = {
    description = "Visualize logs and time-stamped data";
    homepage = http://www.elasticsearch.org/overview/kibana;
    license = licenses.asl20;
    maintainers = with maintainers; [ offline rickynils ];
  };
}