1 { lib, stdenv, fetchurl, pkg-config
2 , withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
6 stdenv.mkDerivation rec {
11 url = "http://download.rsyslog.com/liblogging/liblogging-${version}.tar.gz";
12 sha256 = "14xz00mq07qmcgprlj5b2r21ljgpa4sbwmpr6jm2wrf8wms6331k";
15 nativeBuildInputs = [ pkg-config ];
16 buildInputs = lib.optionals withSystemd [ systemd ];
21 (if withSystemd then "--enable-journal" else "--disable-journal")
26 homepage = "http://www.liblogging.org/";
27 description = "Lightweight signal-safe logging library";
28 license = licenses.bsd2;
29 platforms = platforms.all;