2021-01-16 19:51:22 -08:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, pkg-config, openssl, systemd }:
|
2018-06-17 09:49:29 -07:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 04:41:23 -07:00
|
|
|
pname = "journaldriver";
|
2018-10-09 14:45:43 -07:00
|
|
|
version = "1.1.0";
|
2021-05-07 04:00:49 -07:00
|
|
|
cargoSha256 = "1gzfwkcm63fn41jls16c5sqxz28b0hrfpjhwsvvbwcfv40qxjhsg";
|
2018-06-17 09:49:29 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-10-09 14:45:43 -07:00
|
|
|
owner = "tazjin";
|
2018-06-17 09:49:29 -07:00
|
|
|
repo = "journaldriver";
|
|
|
|
rev = "v${version}";
|
2018-10-09 14:45:43 -07:00
|
|
|
sha256 = "0672iq6s9klb1p37hciyl7snbjgjw98kwrbfkypv07lplc5qcnrf";
|
2018-06-17 09:49:29 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ openssl systemd ];
|
2021-01-16 19:51:22 -08:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2018-06-17 09:49:29 -07:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Log forwarder from journald to Stackdriver Logging";
|
2018-10-09 14:45:43 -07:00
|
|
|
homepage = "https://github.com/tazjin/journaldriver";
|
2018-06-17 09:49:29 -07:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.tazjin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|