2015-03-11 23:12:37 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig
|
|
|
|
, systemd ? null
|
|
|
|
}:
|
2014-07-07 14:23:54 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-27 04:43:06 +00:00
|
|
|
name = "liblogging-1.0.6";
|
2014-07-07 14:23:54 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://download.rsyslog.com/liblogging/${name}.tar.gz";
|
2018-02-27 04:43:06 +00:00
|
|
|
sha256 = "14xz00mq07qmcgprlj5b2r21ljgpa4sbwmpr6jm2wrf8wms6331k";
|
2014-07-07 14:23:54 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ systemd ];
|
2014-07-07 14:23:54 +00:00
|
|
|
|
2015-03-11 23:12:37 +00: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 14:23:54 +00:00
|
|
|
description = "Lightweight signal-safe logging library";
|
2015-03-11 23:12:37 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
platforms = platforms.all;
|
2014-07-07 14:23:54 +00:00
|
|
|
};
|
|
|
|
}
|