nixpkgs/pkgs/tools/misc/journaldriver/default.nix
Vincent Ambo 5ead27394d journaldriver: 1.0.0 -> 1.1.0 (#48106)
Included changes:

* upstream repository has moved, URLs changed accordingly
* journaldriver bumped to new upstream release

The new release includes an important workaround for an issue that
could cause log-forwarding to fail after service restarts due to
invalid journal cursors being persisted.
2018-10-09 23:45:43 +02:00

26 lines
782 B
Nix

{ lib, fetchFromGitHub, rustPlatform, pkgconfig, openssl, systemd }:
rustPlatform.buildRustPackage rec {
name = "journaldriver-${version}";
version = "1.1.0";
cargoSha256 = "03rq96hzv97wh2gbzi8sz796bqgh6pbpvdn0zy6zgq2f2sgkavsl";
src = fetchFromGitHub {
owner = "tazjin";
repo = "journaldriver";
rev = "v${version}";
sha256 = "0672iq6s9klb1p37hciyl7snbjgjw98kwrbfkypv07lplc5qcnrf";
};
buildInputs = [ openssl systemd ];
nativeBuildInputs = [ pkgconfig ];
meta = with lib; {
description = "Log forwarder from journald to Stackdriver Logging";
homepage = "https://github.com/tazjin/journaldriver";
license = licenses.gpl3;
maintainers = [ maintainers.tazjin ];
platforms = platforms.linux;
};
}