2008-06-18 21:29:42 +00:00
|
|
|
{ stdenv, fetchurl, version, versionHash, static }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation
|
|
|
|
{
|
|
|
|
name = "adns-${version}";
|
|
|
|
meta =
|
|
|
|
{
|
|
|
|
homepage = "http://www.chiark.greenend.org.uk/~ian/adns/";
|
|
|
|
description = "Asynchronous DNS Resolver Library";
|
|
|
|
license = "LGPL-v2";
|
|
|
|
};
|
|
|
|
src = fetchurl
|
|
|
|
{
|
2010-01-05 11:16:34 +00:00
|
|
|
urls =
|
|
|
|
[ "http://www.chiark.greenend.org.uk/~ian/adns/ftp/adns-${version}.tar.gz"
|
|
|
|
"ftp://ftp.chiark.greenend.org.uk/users/ian/adns/adns-${version}.tar.gz"
|
|
|
|
"mirror://gnu/adns/adns-${version}.tar.gz"
|
|
|
|
];
|
2008-06-18 21:29:42 +00:00
|
|
|
sha256 = "${versionHash}";
|
|
|
|
};
|
|
|
|
configureFlags = if static then "--disable-dynamic" else "--enable-dynamic";
|
|
|
|
CPPFLAGS = "-DNDEBUG";
|
|
|
|
CFLAGS = "-O3";
|
2009-01-17 20:19:54 +00:00
|
|
|
|
|
|
|
# FIXME: The test suite fails on NixOS in a chroot. See
|
|
|
|
# http://thread.gmane.org/gmane.linux.distributions.nixos/1328 for details.
|
|
|
|
doCheck = false;
|
2008-06-18 21:29:42 +00:00
|
|
|
|
|
|
|
# adns doesn't understand the automatic --disable-shared from the Cygwin stdenv.
|
|
|
|
cygwinConfigureEnableShared = true;
|
|
|
|
}
|