Skip to content

Commit

Permalink
packetbeat: 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 9fe3b0e commit 8338506
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pkgs/misc/logging/packetbeat/default.nix
Original file line number Diff line number Diff line change
@@ -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" ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3326,6 +3326,8 @@ with pkgs;
nix = nixUnstable;
};

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

packetdrill = callPackage ../tools/networking/packetdrill { };

pakcs = callPackage ../development/compilers/pakcs {};
Expand Down

0 comments on commit 8338506

Please sign in to comment.