Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / liblogging / default.nix
blob2623e65f68b050822c72b627e3f71be82d765e0f
1 { lib, stdenv, fetchurl, pkg-config
2 , withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
3 , systemd
4 }:
6 stdenv.mkDerivation rec {
7   pname = "liblogging";
8   version = "1.0.6";
10   src = fetchurl {
11     url = "http://download.rsyslog.com/liblogging/liblogging-${version}.tar.gz";
12     sha256 = "14xz00mq07qmcgprlj5b2r21ljgpa4sbwmpr6jm2wrf8wms6331k";
13   };
15   nativeBuildInputs = [ pkg-config ];
16   buildInputs = lib.optionals withSystemd [ systemd ];
18   configureFlags = [
19     "--enable-rfc3195"
20     "--enable-stdlog"
21     (if withSystemd then "--enable-journal" else "--disable-journal")
22     "--enable-man-pages"
23   ];
25   meta = with lib; {
26     homepage = "http://www.liblogging.org/";
27     description = "Lightweight signal-safe logging library";
28     license = licenses.bsd2;
29     platforms = platforms.all;
30   };