2019-06-16 20:59:06 +01:00
|
|
|
{ lib, systemd, buildGoPackage, fetchFromGitHub }:
|
2017-01-03 13:12:36 +00:00
|
|
|
|
2019-05-10 14:27:45 +01:00
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "journalbeat";
|
2018-03-20 17:19:58 +00:00
|
|
|
version = "5.6.8";
|
2017-01-03 13:12:36 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mheese";
|
|
|
|
repo = "journalbeat";
|
|
|
|
rev = "v${version}";
|
2018-03-20 17:19:58 +00:00
|
|
|
sha256 = "1vgpwnwqjc93nvdpcd52748bwl3r371jb55l17bsgdzrmlcyfm8a";
|
2017-01-03 13:12:36 +00:00
|
|
|
};
|
|
|
|
|
2019-05-10 14:27:45 +01:00
|
|
|
goPackagePath = "github.com/mheese/journalbeat";
|
|
|
|
|
|
|
|
buildInputs = [ systemd.dev ];
|
|
|
|
|
|
|
|
postFixup = let libPath = lib.makeLibraryPath [ systemd.lib ]; in ''
|
|
|
|
patchelf --set-rpath ${libPath} "$bin/bin/journalbeat"
|
|
|
|
'';
|
|
|
|
|
2017-01-03 13:12:36 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = https://github.com/mheese/journalbeat;
|
|
|
|
description = "Journalbeat is a log shipper from systemd/journald to Logstash/Elasticsearch";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ mbrgm ];
|
|
|
|
};
|
|
|
|
}
|