nixpkgs-suyu/pkgs/development/tools/misc/kibana/default.nix

33 lines
1,002 B
Nix
Raw Normal View History

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