diff options
author | Tristan Helmich <tristan.helmich@gmail.com> | 2016-11-29 22:07:13 +0100 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2017-03-20 22:37:44 +0100 |
commit | 8338506abe09be5135fcc29b13ac764e199c36b7 (patch) | |
tree | a766c926844bb812b1a5888afc2d0f20c8ece8ca /pkgs/misc/logging/packetbeat/default.nix | |
parent | 9fe3b0eb13405bd209527b8c2230170f229bd970 (diff) | |
download | nixlib-8338506abe09be5135fcc29b13ac764e199c36b7.tar nixlib-8338506abe09be5135fcc29b13ac764e199c36b7.tar.gz nixlib-8338506abe09be5135fcc29b13ac764e199c36b7.tar.bz2 nixlib-8338506abe09be5135fcc29b13ac764e199c36b7.tar.lz nixlib-8338506abe09be5135fcc29b13ac764e199c36b7.tar.xz nixlib-8338506abe09be5135fcc29b13ac764e199c36b7.tar.zst nixlib-8338506abe09be5135fcc29b13ac764e199c36b7.zip |
packetbeat: init at 5.2.1
Diffstat (limited to 'pkgs/misc/logging/packetbeat/default.nix')
-rw-r--r-- | pkgs/misc/logging/packetbeat/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/misc/logging/packetbeat/default.nix b/pkgs/misc/logging/packetbeat/default.nix new file mode 100644 index 000000000000..bc871a4e278e --- /dev/null +++ b/pkgs/misc/logging/packetbeat/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "packetbeat-${version}"; + version = "5.2.1"; + + src = fetchurl { + url = "https://artifacts.elastic.co/downloads/beats/packetbeat/${name}-linux-x86_64.tar.gz"; + sha256 = "14ff466ban8pfsw750r8jkz1brczfrbcrwfhqvi5i8smfg56m9rl"; + }; + + dontBuild = true; + doCheck = false; + + # need to patch interpreter to be able to run on NixOS + patchPhase = '' + patchelf --interpreter $(cat $NIX_CC/nix-support/dynamic-linker) packetbeat + ''; + + installPhase = '' + mkdir -p $out/bin + cp packetbeat $out/bin/ + ''; + + meta = { + description = "Network packet analyzer that ships data to Elasticsearch"; + longDescription = '' + Packetbeat is an open source network packet analyzer that ships the data to Elasticsearch. + + Think of it like a distributed real-time Wireshark with a lot more analytics features. + The Packetbeat shippers sniff the traffic between your application processes, parse on the fly protocols like HTTP, MySQL, PostgreSQL, Redis or Thrift and correlate the messages into transactions. + ''; + homepage = https://www.elastic.co/products/beats; + license = stdenv.lib.licenses.asl20; + maintainers = [ stdenv.lib.maintainers.fadenb ]; + platforms = [ "x86_64-linux" ]; + }; +} |