adns: 1.5.1 -> 1.6.0
This commit is contained in:
parent
7587132c0a
commit
f5f485e231
1 changed files with 24 additions and 14 deletions
|
@ -1,11 +1,8 @@
|
||||||
{ stdenv, fetchurl }:
|
{ stdenv, lib, fetchurl, gnum4 }:
|
||||||
|
|
||||||
let
|
stdenv.mkDerivation rec {
|
||||||
version = "1.5.1";
|
|
||||||
in
|
|
||||||
stdenv.mkDerivation {
|
|
||||||
pname = "adns";
|
pname = "adns";
|
||||||
inherit version;
|
version = "1.6.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
urls = [
|
urls = [
|
||||||
|
@ -13,25 +10,38 @@ stdenv.mkDerivation {
|
||||||
"ftp://ftp.chiark.greenend.org.uk/users/ian/adns/adns-${version}.tar.gz"
|
"ftp://ftp.chiark.greenend.org.uk/users/ian/adns/adns-${version}.tar.gz"
|
||||||
"mirror://gnu/adns/adns-${version}.tar.gz"
|
"mirror://gnu/adns/adns-${version}.tar.gz"
|
||||||
];
|
];
|
||||||
sha256 = "1ssfh94ck6kn98nf2yy6743srpgqgd167va5ja3bwx42igqjc42v";
|
sha256 = "1pi0xl07pav4zm2jrbrfpv43s1r1q1y12awgak8k7q41m5jp4hpv";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ gnum4 ];
|
||||||
|
|
||||||
preConfigure =
|
preConfigure =
|
||||||
stdenv.lib.optionalString stdenv.isDarwin "sed -i -e 's|-Wl,-soname=$(SHLIBSONAME)||' configure";
|
lib.optionalString stdenv.isDarwin "sed -i -e 's|-Wl,-soname=$(SHLIBSONAME)||' configure";
|
||||||
|
|
||||||
# https://www.mail-archive.com/nix-dev@cs.uu.nl/msg01347.html for details.
|
# https://www.mail-archive.com/nix-dev@cs.uu.nl/msg01347.html for details.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
postInstall = stdenv.lib.optionalString stdenv.isDarwin ''
|
postInstall = let suffix = lib.versions.majorMinor version;
|
||||||
install_name_tool -id $out/lib/libadns.so.1.5 $out/lib/libadns.so.1.5
|
in lib.optionalString stdenv.isDarwin ''
|
||||||
|
install_name_tool -id $out/lib/libadns.so.${suffix} $out/lib/libadns.so.${suffix}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
# darwin executables fail, but I don't want to fail the 100-500 packages depending on this lib
|
||||||
|
doInstallCheck = !stdenv.isDarwin;
|
||||||
|
installCheckPhase = ''
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
|
for prog in $out/bin/*; do
|
||||||
|
$prog --help > /dev/null && echo $(basename $prog) shows usage
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
homepage = "http://www.chiark.greenend.org.uk/~ian/adns/";
|
homepage = "http://www.chiark.greenend.org.uk/~ian/adns/";
|
||||||
description = "Asynchronous DNS Resolver Library";
|
description = "Asynchronous DNS Resolver Library";
|
||||||
license = stdenv.lib.licenses.lgpl2;
|
license = licenses.lgpl2;
|
||||||
|
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
maintainers = [ stdenv.lib.maintainers.peti ];
|
maintainers = [ maintainers.peti ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue