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
|
2016-09-24 19:12:59 +02:00
|
|
|
version = "1.5.1";
|
2011-07-21 22:58:34 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 23:52:01 +02:00
|
|
|
pname = "adns";
|
|
|
|
inherit version;
|
2011-07-21 22:58:34 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
urls = [
|
2018-06-28 20:43:35 +02:00
|
|
|
"https://www.chiark.greenend.org.uk/~ian/adns/ftp/adns-${version}.tar.gz"
|
2011-07-21 22:58:34 +02:00
|
|
|
"ftp://ftp.chiark.greenend.org.uk/users/ian/adns/adns-${version}.tar.gz"
|
|
|
|
"mirror://gnu/adns/adns-${version}.tar.gz"
|
|
|
|
];
|
2016-09-24 19:12:59 +02:00
|
|
|
sha256 = "1ssfh94ck6kn98nf2yy6743srpgqgd167va5ja3bwx42igqjc42v";
|
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";
|
|
|
|
|
2018-11-30 02:19:05 +01:00
|
|
|
# https://www.mail-archive.com/nix-dev@cs.uu.nl/msg01347.html for details.
|
2009-01-17 21:19:54 +01:00
|
|
|
doCheck = false;
|
2008-06-18 23:29:42 +02:00
|
|
|
|
2015-01-02 21:43:51 +01:00
|
|
|
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
2015-02-05 15:02:23 +01:00
|
|
|
install_name_tool -id $out/lib/libadns.so.1.5 $out/lib/libadns.so.1.5
|
2015-01-02 21:43:51 +01:00
|
|
|
'';
|
|
|
|
|
2011-07-21 22:58:34 +02:00
|
|
|
meta = {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.chiark.greenend.org.uk/~ian/adns/;
|
2011-07-21 22:58:34 +02:00
|
|
|
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;
|
2016-05-16 22:30:20 +02:00
|
|
|
maintainers = [ stdenv.lib.maintainers.peti ];
|
2011-07-21 22:58:34 +02:00
|
|
|
};
|
2008-06-18 23:29:42 +02:00
|
|
|
}
|