Skip to content

Commit

Permalink
filebeat: init at 5.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fadenb authored and globin committed Mar 20, 2017
1 parent 9fce672 commit 9fe3b0e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
28 changes: 28 additions & 0 deletions pkgs/misc/logging/filebeat/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{ stdenv, fetchurl }:

stdenv.mkDerivation rec {
name = "filebeat-${version}";
version = "5.2.1";

src = fetchurl {
url = "https://artifacts.elastic.co/downloads/beats/filebeat/${name}-linux-x86_64.tar.gz";
sha256 = "0kwkd3n6jmd0mwbvk2dng8843mxyq4mfvlm3hc8d1vd2m1m9wlhi";
};

# statically linked binary, no need to build anything
dontBuild = true;
doCheck = false;

installPhase = ''
mkdir -p $out/bin
cp filebeat $out/bin/
'';

meta = {
description = "Lightweight shipper for logfiles";
homepage = https://www.elastic.co/products/beats;
license = stdenv.lib.licenses.asl20;
maintainers = [ stdenv.lib.maintainers.fadenb ];
platforms = [ "x86_64-linux" ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,8 @@ with pkgs;

fastJson = callPackage ../development/libraries/fastjson { };

filebeat = callPackage ../misc/logging/filebeat { };

filebench = callPackage ../tools/misc/filebench { };

fsmon = callPackage ../tools/misc/fsmon { };
Expand Down

0 comments on commit 9fe3b0e

Please sign in to comment.