Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 32 lines 848 B view raw
1{ lib, stdenv, fetchurl, pkg-config 2, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd 3, systemd 4}: 5 6stdenv.mkDerivation rec { 7 pname = "liblogging"; 8 version = "1.0.6"; 9 10 src = fetchurl { 11 url = "http://download.rsyslog.com/liblogging/liblogging-${version}.tar.gz"; 12 sha256 = "14xz00mq07qmcgprlj5b2r21ljgpa4sbwmpr6jm2wrf8wms6331k"; 13 }; 14 15 nativeBuildInputs = [ pkg-config ]; 16 buildInputs = lib.optionals withSystemd [ systemd ]; 17 18 configureFlags = [ 19 "--enable-rfc3195" 20 "--enable-stdlog" 21 (if withSystemd then "--enable-journal" else "--disable-journal") 22 "--enable-man-pages" 23 ]; 24 25 meta = with lib; { 26 homepage = "http://www.liblogging.org/"; 27 description = "Lightweight signal-safe logging library"; 28 mainProgram = "stdlogctl"; 29 license = licenses.bsd2; 30 platforms = platforms.all; 31 }; 32}