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
|
2016-09-24 18:12:59 +01:00
|
|
|
version = "1.5.1";
|
2011-07-21 21:58:34 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "adns";
|
|
|
|
inherit version;
|
2011-07-21 21:58:34 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
urls = [
|
2018-06-28 19:43:35 +01:00
|
|
|
"https://www.chiark.greenend.org.uk/~ian/adns/ftp/adns-${version}.tar.gz"
|
2011-07-21 21:58:34 +01:00
|
|
|
"ftp://ftp.chiark.greenend.org.uk/users/ian/adns/adns-${version}.tar.gz"
|
|
|
|
"mirror://gnu/adns/adns-${version}.tar.gz"
|
|
|
|
];
|
2016-09-24 18:12:59 +01:00
|
|
|
sha256 = "1ssfh94ck6kn98nf2yy6743srpgqgd167va5ja3bwx42igqjc42v";
|
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";
|
|
|
|
|
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 22:29:42 +01: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 21:58:34 +01:00
|
|
|
meta = {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://www.chiark.greenend.org.uk/~ian/adns/;
|
2011-07-21 21:58:34 +01:00
|
|
|
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;
|
2016-05-16 21:30:20 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.peti ];
|
2011-07-21 21:58:34 +01:00
|
|
|
};
|
2008-06-18 22:29:42 +01:00
|
|
|
}
|