3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/journaldriver/default.nix

26 lines
767 B
Nix
Raw Normal View History

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