nixpkgs/pkgs/tools/system/syslog-ng/default.nix
Peter Simons 7d651a8ec3 syslog-ng: the build doesn't find "glib" on platforms other than Linux
Glib is a buildInput, and it does work fine on Linux, but on other
platforms Hydra reports a build failure:

 | checking for GLIB - version >= 2.10.1... no
 | *** Could not run GLIB test program, checking why...
 | *** The test program failed to compile or link. See the file config.log for the
 | *** exact error that occured. This usually means GLIB is incorrectly installed.
 | configure: error: Cannot find GLIB version >= 2.10.1: is pkg-config in path?

I can't debug that problem, so opted to just disable those builds that
fail anyway.

svn path=/nixpkgs/trunk/; revision=28156
2011-08-04 15:59:21 +00:00

23 lines
702 B
Nix

{stdenv, fetchurl, eventlog, pkgconfig, glib}:
stdenv.mkDerivation {
name = "syslog-ng-3.1.2";
src = fetchurl {
url = "http://www.balabit.com/downloads/files?path=/syslog-ng/sources/3.1.2/source/syslog-ng_3.1.2.tar.gz";
sha256 = "0a508l4j11336jn5kg65l70rf7xbpdxi2n477rvp5p48cc1adcg2";
};
buildInputs = [eventlog pkgconfig glib];
configureFlags = "--enable-dynamic-linking";
meta = {
homepage = "http://www.balabit.com/network-security/syslog-ng/";
description = "Next-generation syslogd with advanced networking and filtering capabilities.";
license = "GPLv2";
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.simons ];
};
}