6 withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd,
10 stdenv.mkDerivation rec {
15 url = "http://download.rsyslog.com/liblogging/liblogging-${version}.tar.gz";
16 sha256 = "14xz00mq07qmcgprlj5b2r21ljgpa4sbwmpr6jm2wrf8wms6331k";
19 nativeBuildInputs = [ pkg-config ];
20 buildInputs = lib.optionals withSystemd [ systemd ];
25 (if withSystemd then "--enable-journal" else "--disable-journal")
29 env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-int -Wno-error=implicit-function-declaration";
32 homepage = "http://www.liblogging.org/";
33 description = "Lightweight signal-safe logging library";
34 mainProgram = "stdlogctl";
35 license = licenses.bsd2;
36 platforms = platforms.all;