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