monocle: init at 0.8.0 (#395071)

authored by Nick Cao and committed by GitHub ee1fcc01 eef97ce0

+46
+46
pkgs/by-name/mo/monocle/package.nix
··· 1 + { 2 + lib, 3 + rustPlatform, 4 + fetchFromGitHub, 5 + versionCheckHook, 6 + nix-update-script, 7 + }: 8 + 9 + rustPlatform.buildRustPackage (finalAttrs: { 10 + pname = "monocle"; 11 + version = "0.8.0"; 12 + 13 + src = fetchFromGitHub { 14 + owner = "bgpkit"; 15 + repo = "monocle"; 16 + tag = "v${finalAttrs.version}"; 17 + hash = "sha256-vpGCYU/vW4cQFuAWxa+ZkuKLB4NSs5tPW2iWVE8iPAk="; 18 + }; 19 + 20 + useFetchCargoVendor = true; 21 + cargoHash = "sha256-1wouA1REbPHm/v4ZB76gfgDPweNV3nztf6XxKdu42GQ="; 22 + 23 + # require internet access 24 + checkFlags = [ 25 + "--skip=datasets::as2org::tests::test_crawling" 26 + "--skip=datasets::ip::tests::test_fetch_ip_info" 27 + "--skip=datasets::rpki::validator::tests::test_bgp" 28 + "--skip=datasets::rpki::validator::tests::test_list_asn" 29 + "--skip=datasets::rpki::validator::tests::test_list_prefix" 30 + "--skip=datasets::rpki::validator::tests::test_validation" 31 + ]; 32 + 33 + doInstallCheck = true; 34 + nativeInstallCheckInputs = [ versionCheckHook ]; 35 + 36 + passthru.updateScript = nix-update-script { }; 37 + 38 + meta = { 39 + description = "See through all BGP data with a monocle"; 40 + homepage = "https://github.com/bgpkit/monocle"; 41 + changelog = "https://github.com/bgpkit/monocle/releases/tag/v${finalAttrs.version}"; 42 + license = lib.licenses.mit; 43 + maintainers = with lib.maintainers; [ stepbrobd ]; 44 + mainProgram = "monocle"; 45 + }; 46 + })