1{ stdenv, fetchurl, pkgconfig
2, systemd ? null
3}:
4
5stdenv.mkDerivation rec {
6 name = "liblogging-1.0.6";
7
8 src = fetchurl {
9 url = "http://download.rsyslog.com/liblogging/${name}.tar.gz";
10 sha256 = "14xz00mq07qmcgprlj5b2r21ljgpa4sbwmpr6jm2wrf8wms6331k";
11 };
12
13 nativeBuildInputs = [ pkgconfig ];
14 buildInputs = [ systemd ];
15
16 configureFlags = [
17 "--enable-rfc3195"
18 "--enable-stdlog"
19 (if systemd != null then "--enable-journal" else "--disable-journal")
20 "--enable-man-pages"
21 ];
22
23 meta = with stdenv.lib; {
24 homepage = http://www.liblogging.org/;
25 description = "Lightweight signal-safe logging library";
26 license = licenses.bsd2;
27 platforms = platforms.all;
28 maintainers = with maintainers; [ wkennington ];
29 };
30}