mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
5ead27394d
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.
26 lines
782 B
Nix
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;
|
|
};
|
|
}
|