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