2018-06-17 18:49:29 +02:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform, pkgconfig, openssl, systemd }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
2019-08-31 13:41:23 +02:00
|
|
|
pname = "journaldriver";
|
2018-10-09 23:45:43 +02:00
|
|
|
version = "1.1.0";
|
2019-05-25 13:03:08 +02:00
|
|
|
cargoSha256 = "0wmr0r54ar7gvhvhv76a49ap74lx8hl79bf73vc4f4xlj7hj303g";
|
2018-06-17 18:49:29 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-10-09 23:45:43 +02:00
|
|
|
owner = "tazjin";
|
2018-06-17 18:49:29 +02:00
|
|
|
repo = "journaldriver";
|
|
|
|
rev = "v${version}";
|
2018-10-09 23:45:43 +02:00
|
|
|
sha256 = "0672iq6s9klb1p37hciyl7snbjgjw98kwrbfkypv07lplc5qcnrf";
|
2018-06-17 18:49:29 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ openssl systemd ];
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Log forwarder from journald to Stackdriver Logging";
|
2018-10-09 23:45:43 +02:00
|
|
|
homepage = "https://github.com/tazjin/journaldriver";
|
2018-06-17 18:49:29 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.tazjin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|