Skip to content

Commit

Permalink
packetbeat: 5.2.1 -> 5.2.2, build from source
Browse files Browse the repository at this point in the history
  • Loading branch information
globin committed Mar 20, 2017
1 parent 4d08d1a commit 10239a0
Showing 1 changed file with 21 additions and 23 deletions.
44 changes: 21 additions & 23 deletions pkgs/misc/logging/packetbeat/default.nix
Original file line number Diff line number Diff line change
@@ -1,38 +1,36 @@
{ stdenv, fetchurl }:
{ stdenv, fetchFromGitHub, buildGoPackage, libpcap }:

stdenv.mkDerivation rec {
buildGoPackage rec {
name = "packetbeat-${version}";
version = "5.2.1";
version = "5.2.2";

src = fetchurl {
url = "https://artifacts.elastic.co/downloads/beats/packetbeat/${name}-linux-x86_64.tar.gz";
sha256 = "14ff466ban8pfsw750r8jkz1brczfrbcrwfhqvi5i8smfg56m9rl";
src = fetchFromGitHub {
owner = "elastic";
repo = "beats";
rev = "v${version}";
sha256 = "19hkq19xpi3c9y5g1yq77sm2d5vzybn6mxxf0s5l6sw4l98aak5q";
};

dontBuild = true;
doCheck = false;
goPackagePath = "github.com/elastic/beats";

# need to patch interpreter to be able to run on NixOS
patchPhase = ''
patchelf --interpreter $(cat $NIX_CC/nix-support/dynamic-linker) packetbeat
'';
subPackages = [ "packetbeat" ];

installPhase = ''
mkdir -p $out/bin
cp packetbeat $out/bin/
'';
buildInputs = [ libpcap ];

meta = {
meta = with stdenv.lib; {
description = "Network packet analyzer that ships data to Elasticsearch";
longDescription = ''
Packetbeat is an open source network packet analyzer that ships the data to Elasticsearch.
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.
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" ];
license = licenses.asl20;
maintainers = [ maintainers.fadenb ];
platforms = platforms.linux;
};
}

0 comments on commit 10239a0

Please sign in to comment.