2023-01-13 08:46:02 +00:00
|
|
|
{ lib, fetchgit, rustPlatform, pkg-config, openssl, systemd }:
|
2018-06-17 16:49:29 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 11:41:23 +00:00
|
|
|
pname = "journaldriver";
|
2023-01-13 08:46:02 +00:00
|
|
|
version = "5656.0.0";
|
|
|
|
cargoSha256 = "0jxv7skqgkk2j28jzs0gqnic0pqbdpgy8ryhz613pn0cslgy1p5q";
|
2018-06-17 16:49:29 +00:00
|
|
|
|
2023-01-13 08:46:02 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://code.tvl.fyi/depot.git:/ops/journaldriver.git";
|
|
|
|
sha256 = "0bnf67k6pkw4rngn58b5zm19danr4sh2g6rfd4k5w2sa1lzqai04";
|
|
|
|
|
|
|
|
# TVL revision r/5656; as of 2023-01-13 the revision tag is
|
|
|
|
# unavailable through git, hence the pinned hash.
|
|
|
|
rev = "4e191353228197ce548d63cb9955e53661244f9c";
|
2018-06-17 16:49:29 +00:00
|
|
|
};
|
|
|
|
|
2023-01-13 08:46:02 +00:00
|
|
|
buildInputs = [ openssl systemd ];
|
2021-01-17 03:51:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-06-17 16:49:29 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Log forwarder from journald to Stackdriver Logging";
|
2023-01-13 08:46:02 +00:00
|
|
|
homepage = "https://code.tvl.fyi/about/ops/journaldriver";
|
|
|
|
license = licenses.gpl3;
|
2018-06-17 16:49:29 +00:00
|
|
|
maintainers = [ maintainers.tazjin ];
|
2023-01-13 08:46:02 +00:00
|
|
|
platforms = platforms.linux;
|
2018-06-17 16:49:29 +00:00
|
|
|
};
|
|
|
|
}
|