mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
monocle: init at 0.8.0
This commit is contained in:
parent
9d4a057b4e
commit
3086bb9365
1 changed files with 46 additions and 0 deletions
46
pkgs/by-name/mo/monocle/package.nix
Normal file
46
pkgs/by-name/mo/monocle/package.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "monocle";
|
||||
version = "0.8.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "bgpkit";
|
||||
repo = "monocle";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-vpGCYU/vW4cQFuAWxa+ZkuKLB4NSs5tPW2iWVE8iPAk=";
|
||||
};
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-1wouA1REbPHm/v4ZB76gfgDPweNV3nztf6XxKdu42GQ=";
|
||||
|
||||
# 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"
|
||||
];
|
||||
|
||||
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";
|
||||
};
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue