mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
fee96dabb7
forward the appropriate hash value to the generic driver found in default.nix. svn path=/nixpkgs/trunk/; revision=12153
25 lines
666 B
Nix
25 lines
666 B
Nix
{ 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
|
|
{
|
|
url = "ftp://ftp.chiark.greenend.org.uk/users/ian/adns/adns-${version}.tar.gz";
|
|
sha256 = "${versionHash}";
|
|
};
|
|
configureFlags = if static then "--disable-dynamic" else "--enable-dynamic";
|
|
CPPFLAGS = "-DNDEBUG";
|
|
CFLAGS = "-O3";
|
|
doCheck = 1;
|
|
|
|
# adns doesn't understand the automatic --disable-shared from the Cygwin stdenv.
|
|
cygwinConfigureEnableShared = true;
|
|
}
|