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