28dd84d362
Signed-off-by: Lisanna Dettwyler <lisanna.dettwyler@gmail.com>
39 lines
972 B
Nix
39 lines
972 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
pkg-config,
|
|
withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
|
|
systemd,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "liblogging";
|
|
version = "1.0.8";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.rsyslog.com/liblogging/liblogging-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-ZEm3u3XcKC7GvxuYp1PJUHRupbGQ7JruCXiB5NxcS/E=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = lib.optionals withSystemd [ systemd ];
|
|
|
|
configureFlags = [
|
|
"--enable-rfc3195"
|
|
"--enable-stdlog"
|
|
(if withSystemd then "--enable-journal" else "--disable-journal")
|
|
"--enable-man-pages"
|
|
];
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-int -Wno-error=implicit-function-declaration";
|
|
|
|
meta = {
|
|
homepage = "http://www.liblogging.org/";
|
|
description = "Lightweight signal-safe logging library";
|
|
mainProgram = "stdlogctl";
|
|
license = lib.licenses.bsd2;
|
|
platforms = lib.platforms.all;
|
|
};
|
|
})
|