Files
Lisanna Dettwyler 28dd84d362 liblogging: use https for sources
Signed-off-by: Lisanna Dettwyler <lisanna.dettwyler@gmail.com>
2026-03-21 12:30:14 -04:00

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;
};
})