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
34 lines
789 B
Nix
34 lines
789 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "zdns";
|
|
version = "2.0.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "zmap";
|
|
repo = "zdns";
|
|
tag = "v${version}";
|
|
hash = "sha256-e01+TjJETpWNrdtG+lHHGmS9ZS9RijOo5wRnEv6w5jk=";
|
|
};
|
|
|
|
vendorHash = "sha256-YlSm4uMDw5I/R4VRpoo5+t/zTwY7J62faodwKlrfbTs=";
|
|
|
|
preCheck = ''
|
|
# Tests require network access
|
|
substituteInPlace src/cli/worker_manager_test.go \
|
|
--replace-fail "TestConvertNameServerStringToNameServer" "SkipTestConvertNameServerStringToNameServer"
|
|
'';
|
|
|
|
meta = {
|
|
description = "CLI DNS lookup tool";
|
|
mainProgram = "zdns";
|
|
homepage = "https://github.com/zmap/zdns";
|
|
license = with lib.licenses; [ asl20 ];
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|