2011-07-21 22:58:34 +02:00
|
|
|
{ stdenv, fetchurl }:
|
2008-06-18 23:29:42 +02:00
|
|
|
|
2011-07-21 22:58:34 +02:00
|
|
|
let
|
|
|
|
version = "1.4";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2008-06-18 23:29:42 +02:00
|
|
|
name = "adns-${version}";
|
2011-07-21 22:58:34 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
sha256 = "1zm99i9fd5gfijd144ajngn6x73563355im79sqdi98pj6ir4yvi";
|
2008-06-18 23:29:42 +02:00
|
|
|
};
|
2009-01-17 21:19:54 +01:00
|
|
|
|
2011-07-21 23:26:21 +02:00
|
|
|
preConfigure =
|
|
|
|
stdenv.lib.optionalString stdenv.isDarwin "sed -i -e 's|-Wl,-soname=$(SHLIBSONAME)||' configure";
|
|
|
|
|
2009-01-17 21:19:54 +01:00
|
|
|
# http://thread.gmane.org/gmane.linux.distributions.nixos/1328 for details.
|
|
|
|
doCheck = false;
|
2008-06-18 23:29:42 +02:00
|
|
|
|
2015-01-02 21:43:51 +01:00
|
|
|
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
install_name_tool -id $out/lib/libadns.so.1.3 $out/lib/libadns.so.1.3
|
|
|
|
'';
|
|
|
|
|
2011-07-21 22:58:34 +02:00
|
|
|
meta = {
|
|
|
|
homepage = "http://www.chiark.greenend.org.uk/~ian/adns/";
|
|
|
|
description = "Asynchronous DNS Resolver Library";
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.lgpl2;
|
2011-07-21 22:58:34 +02:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.simons ];
|
|
|
|
};
|
2008-06-18 23:29:42 +02:00
|
|
|
}
|