Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
65 lines
1.4 KiB
Nix
65 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
gnum4,
|
|
autoreconfHook,
|
|
gitUpdater,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "adns";
|
|
version = "1.6.1";
|
|
|
|
src = fetchurl {
|
|
urls = [
|
|
"https://www.chiark.greenend.org.uk/~ian/adns/ftp/adns-${finalAttrs.version}.tar.gz"
|
|
"mirror://gnu/adns/adns-${finalAttrs.version}.tar.gz"
|
|
];
|
|
hash = "sha256-cTizeJt1Br1oP0UdT32FMHepGAO3s12G7GZ/D5zUAc0=";
|
|
};
|
|
|
|
patches = lib.optionals stdenv.hostPlatform.isDarwin [ ./darwin.patch ];
|
|
|
|
nativeBuildInputs = [
|
|
gnum4
|
|
autoreconfHook
|
|
];
|
|
|
|
configureFlags = lib.optional stdenv.hostPlatform.isStatic "--disable-dynamic";
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
# https://www.mail-archive.com/nix-dev@cs.uu.nl/msg01347.html for details.
|
|
doCheck = false;
|
|
|
|
doInstallCheck = true;
|
|
|
|
installCheckPhase = ''
|
|
runHook preInstallCheck
|
|
|
|
for prog in $out/bin/*; do
|
|
$prog --help > /dev/null && echo $(basename $prog) shows usage
|
|
done
|
|
|
|
runHook postInstallCheck
|
|
'';
|
|
|
|
passthru.updateScript = gitUpdater {
|
|
url = "https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/githttp/adns.git";
|
|
rev-prefix = "adns-";
|
|
};
|
|
|
|
meta = {
|
|
homepage = "http://www.chiark.greenend.org.uk/~ian/adns/";
|
|
description = "Asynchronous DNS resolver library";
|
|
license = [
|
|
lib.licenses.gpl3Plus
|
|
|
|
# `adns.h` only
|
|
lib.licenses.lgpl2Plus
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|