2011-07-21 20:58:34 +00:00
|
|
|
{ stdenv, fetchurl }:
|
2008-06-18 21:29:42 +00:00
|
|
|
|
2011-07-21 20:58:34 +00:00
|
|
|
let
|
2016-09-24 17:12:59 +00:00
|
|
|
version = "1.5.1";
|
2011-07-21 20:58:34 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "adns";
|
|
|
|
inherit version;
|
2011-07-21 20:58:34 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
urls = [
|
2018-06-28 18:43:35 +00:00
|
|
|
"https://www.chiark.greenend.org.uk/~ian/adns/ftp/adns-${version}.tar.gz"
|
2011-07-21 20:58:34 +00:00
|
|
|
"ftp://ftp.chiark.greenend.org.uk/users/ian/adns/adns-${version}.tar.gz"
|
|
|
|
"mirror://gnu/adns/adns-${version}.tar.gz"
|
|
|
|
];
|
2016-09-24 17:12:59 +00:00
|
|
|
sha256 = "1ssfh94ck6kn98nf2yy6743srpgqgd167va5ja3bwx42igqjc42v";
|
2008-06-18 21:29:42 +00:00
|
|
|
};
|
2009-01-17 20:19:54 +00:00
|
|
|
|
2011-07-21 21:26:21 +00:00
|
|
|
preConfigure =
|
|
|
|
stdenv.lib.optionalString stdenv.isDarwin "sed -i -e 's|-Wl,-soname=$(SHLIBSONAME)||' configure";
|
|
|
|
|
2018-11-30 01:19:05 +00:00
|
|
|
# https://www.mail-archive.com/nix-dev@cs.uu.nl/msg01347.html for details.
|
2009-01-17 20:19:54 +00:00
|
|
|
doCheck = false;
|
2008-06-18 21:29:42 +00:00
|
|
|
|
2015-01-02 20:43:51 +00:00
|
|
|
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
2015-02-05 14:02:23 +00:00
|
|
|
install_name_tool -id $out/lib/libadns.so.1.5 $out/lib/libadns.so.1.5
|
2015-01-02 20:43:51 +00:00
|
|
|
'';
|
|
|
|
|
2011-07-21 20:58:34 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.chiark.greenend.org.uk/~ian/adns/";
|
2011-07-21 20:58:34 +00:00
|
|
|
description = "Asynchronous DNS Resolver Library";
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.lgpl2;
|
2011-07-21 20:58:34 +00:00
|
|
|
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-05-16 20:30:20 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.peti ];
|
2011-07-21 20:58:34 +00:00
|
|
|
};
|
2008-06-18 21:29:42 +00:00
|
|
|
}
|