biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / misc / logstash / contrib.nix
blob64c0c9b9b3ff217aebb0e7fbf42c7aaabf5f2c13
1 { stdenv, lib, fetchzip }:
3 # Note that plugins are supposed to be installed as:
4 #   $path/logstash/{inputs,codecs,filters,outputs}/*.rb
5 stdenv.mkDerivation rec {
6   version = "1.4.2";
7   pname = "logstash-contrib";
9   src = fetchzip {
10    url = "https://download.elasticsearch.org/logstash/logstash/logstash-contrib-${version}.tar.gz";
11    sha256 = "1yj8sf3b526gixh3c6zhgkfpg4f0c72p1lzhfhdx8b3lw7zjkj0k";
12   };
14   dontBuild    = true;
15   dontPatchELF = true;
16   dontStrip    = true;
17   dontPatchShebangs = true;
19   installPhase = ''
20     runHook preInstall
21     mkdir -p $out/logstash
22     cp -r lib/* $out
23     runHook postInstall
24   '';
26   meta = with lib; {
27     description = "Community-maintained logstash plugins";
28     homepage    = "https://github.com/elasticsearch/logstash-contrib";
29     license     = lib.licenses.asl20;
30     platforms   = lib.platforms.unix;
31     maintainers = [ ];
32   };