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