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
48 lines
1.4 KiB
Nix
48 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
versionCheckHook,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "monocle";
|
|
version = "0.9.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bgpkit";
|
|
repo = "monocle";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-7p7asmCHKFAHElYuRKs6BPG7Al3J36sJEss+hDEVQRI=";
|
|
};
|
|
|
|
cargoHash = "sha256-nGeAHIn076WkVnab7lUn4K1/TQ01Bgk/huxm12pzzkQ=";
|
|
|
|
# require internet access
|
|
checkFlags = [
|
|
"--skip=datasets::as2org::tests::test_crawling"
|
|
"--skip=datasets::ip::tests::test_fetch_ip_info"
|
|
"--skip=datasets::rpki::validator::tests::test_bgp"
|
|
"--skip=datasets::rpki::validator::tests::test_list_asn"
|
|
"--skip=datasets::rpki::validator::tests::test_list_prefix"
|
|
"--skip=datasets::rpki::validator::tests::test_validation"
|
|
"--skip=filters::search::tests::test_build_broker_with_filters"
|
|
"--skip=filters::search::tests::test_pagination_logic"
|
|
];
|
|
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "See through all BGP data with a monocle";
|
|
homepage = "https://github.com/bgpkit/monocle";
|
|
changelog = "https://github.com/bgpkit/monocle/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ stepbrobd ];
|
|
mainProgram = "monocle";
|
|
};
|
|
})
|