2015-03-12 00:12:37 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig
|
|
|
|
, systemd ? null
|
|
|
|
}:
|
2014-07-07 16:23:54 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-27 05:43:06 +01:00
|
|
|
name = "liblogging-1.0.6";
|
2014-07-07 16:23:54 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.rsyslog.com/liblogging/${name}.tar.gz";
|
2018-02-27 05:43:06 +01:00
|
|
|
sha256 = "14xz00mq07qmcgprlj5b2r21ljgpa4sbwmpr6jm2wrf8wms6331k";
|
2014-07-07 16:23:54 +02:00
|
|
|
};
|
|
|
|
|
2017-09-05 23:26:13 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ systemd ];
|
2014-07-07 16:23:54 +02:00
|
|
|
|
2015-03-12 00:12:37 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-rfc3195"
|
|
|
|
"--enable-stdlog"
|
|
|
|
(if systemd != null then "--enable-journal" else "--disable-journal")
|
|
|
|
"--enable-man-pages"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.liblogging.org/;
|
2014-07-07 16:23:54 +02:00
|
|
|
description = "Lightweight signal-safe logging library";
|
2015-03-12 00:12:37 +01:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.all;
|
2014-07-07 16:23:54 +02:00
|
|
|
};
|
|
|
|
}
|