nixpkgs/pkgs/development/libraries/adns/default.nix

38 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl }:
let
2016-09-24 18:12:59 +01:00
version = "1.5.1";
in
stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "adns";
inherit version;
src = fetchurl {
urls = [
"https://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 18:12:59 +01:00
sha256 = "1ssfh94ck6kn98nf2yy6743srpgqgd167va5ja3bwx42igqjc42v";
};
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.
doCheck = false;
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
install_name_tool -id $out/lib/libadns.so.1.5 $out/lib/libadns.so.1.5
'';
meta = {
homepage = "http://www.chiark.greenend.org.uk/~ian/adns/";
description = "Asynchronous DNS Resolver Library";
license = stdenv.lib.licenses.lgpl2;
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.peti ];
};
}