nixpkgs/pkgs/development/libraries/adns/default.nix
Silvan Mosberger 57bccb3cb8 treewide: http -> https sources (#42676)
* treewide: http -> https sources

This updates the source urls of all top-level packages from http to
https where possible.

* buildtorrent: fix url and tab -> spaces
2018-06-28 20:43:35 +02:00

37 lines
1.0 KiB
Nix

{ stdenv, fetchurl }:
let
version = "1.5.1";
in
stdenv.mkDerivation {
name = "adns-${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"
];
sha256 = "1ssfh94ck6kn98nf2yy6743srpgqgd167va5ja3bwx42igqjc42v";
};
preConfigure =
stdenv.lib.optionalString stdenv.isDarwin "sed -i -e 's|-Wl,-soname=$(SHLIBSONAME)||' configure";
# http://thread.gmane.org/gmane.linux.distributions.nixos/1328 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 ];
};
}