2021-02-05 17:12:51 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, pkg-config, openssl, systemd }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "journaldriver";
|
|
|
|
version = "1.1.0";
|
2021-05-28 09:39:13 +00:00
|
|
|
cargoSha256 = "1gzfwkcm63fn41jls16c5sqxz28b0hrfpjhwsvvbwcfv40qxjhsg";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tazjin";
|
|
|
|
repo = "journaldriver";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0672iq6s9klb1p37hciyl7snbjgjw98kwrbfkypv07lplc5qcnrf";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ openssl systemd ];
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|