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 {
|
2008-06-18 21:29:42 +00:00
|
|
|
name = "adns-${version}";
|
2011-07-21 20:58:34 +00: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"
|
|
|
|
];
|
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";
|
|
|
|
|
2009-01-17 20:19:54 +00:00
|
|
|
# http://thread.gmane.org/gmane.linux.distributions.nixos/1328 for details.
|
|
|
|
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 = {
|
|
|
|
homepage = "http://www.chiark.greenend.org.uk/~ian/adns/";
|
|
|
|
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
|
|
|
}
|