about summary refs log tree commit diff
path: root/pkgs/tools/misc/logstash/contrib.nix
blob: c019803f9035a4b250910417bb25b4544681939b (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
29
30
31
{ stdenv, lib, fetchzip }:

# Note that plugins are supposed to be installed as:
#   $path/logstash/{inputs,codecs,filters,outputs}/*.rb 
stdenv.mkDerivation rec {
  version = "1.4.2";
  name = "logstash-contrib-${version}";

  src = fetchzip {
   url = "http://download.elasticsearch.org/logstash/logstash/logstash-contrib-${version}.tar.gz";
   sha256 = "1yj8sf3b526gixh3c6zhgkfpg4f0c72p1lzhfhdx8b3lw7zjkj0k";
  };

  dontBuild    = true;
  dontPatchELF = true;
  dontStrip    = true;
  dontPatchShebangs = true;

  installPhase = ''
    mkdir -p $out/logstash
    cp -r lib/* $out
  '';

  meta = with lib; {
    description = "Community-maintained logstash plugins";
    homepage    = https://github.com/elasticsearch/logstash-contrib;
    license     = stdenv.lib.licenses.asl20;
    platforms   = stdenv.lib.platforms.unix;
    maintainers = with maintainers; [ cstrahan ];
  };
}