nixpkgs/pkgs/tools/networking/lychee/default.nix

56 lines
1.5 KiB
Nix
Raw Normal View History

2021-03-19 19:15:08 +00:00
{ lib
2022-07-29 19:42:11 +01:00
, stdenv
2021-03-19 19:15:08 +00:00
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
2022-07-29 19:42:11 +01:00
, Security
2021-03-19 19:15:08 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "lychee";
2023-08-04 13:31:12 +01:00
version = "0.13.0";
2021-03-19 19:15:08 +00:00
src = fetchFromGitHub {
owner = "lycheeverse";
repo = pname;
2021-11-18 14:57:58 +00:00
rev = "v${version}";
2023-08-04 13:31:12 +01:00
hash = "sha256-JUyoOtlypDWK6HxsonVzbfQAdcXk728a8gVI/5GI2fs=";
2021-03-19 19:15:08 +00:00
};
2023-08-04 13:31:12 +01:00
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"criterion-0.4.0" = "sha256-0EKLRdxbH2czkZjmuaYLzkTBU687y6Iw9yqNV2TbsDw=";
};
};
2021-03-19 19:15:08 +00:00
nativeBuildInputs = [ pkg-config ];
2022-07-29 19:42:11 +01:00
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ Security ];
2021-03-19 19:15:08 +00:00
2023-08-04 13:31:12 +01:00
checkFlags = [
# Network errors for all of these tests
# "error reading DNS system conf: No such file or directory (os error 2)" } }
"--skip=archive::wayback::tests::wayback_suggestion"
"--skip=archive::wayback::tests::wayback_suggestion_unknown_url"
"--skip=cli::test_dont_dump_data_uris_by_default"
"--skip=cli::test_dump_data_uris_in_verbose_mode"
"--skip=cli::test_exclude_example_domains"
"--skip=cli::test_local_dir"
"--skip=cli::test_local_file"
"--skip=client::tests"
"--skip=collector::tests"
"--skip=src/lib.rs"
];
2021-03-19 19:15:08 +00:00
meta = with lib; {
2023-08-04 13:31:12 +01:00
description = "A fast, async, stream-based link checker written in Rust.";
2021-03-19 19:15:08 +00:00
homepage = "https://github.com/lycheeverse/lychee";
2023-08-04 13:31:12 +01:00
downloadPage = "https://github.com/lycheeverse/lychee/releases/tag/v${version}";
2021-03-19 19:15:08 +00:00
license = with licenses; [ asl20 mit ];
2023-08-04 13:31:12 +01:00
maintainers = with maintainers; [ totoroot tuxinaut ];
2021-03-19 19:15:08 +00:00
};
}