2021-09-22 15:38:15 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-deadlinks";
|
2021-10-14 00:43:12 +00:00
|
|
|
version = "0.8.1";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "deadlinks";
|
|
|
|
repo = pname;
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = version;
|
2021-10-14 00:43:12 +00:00
|
|
|
sha256 = "0s5q9aghncsk9834azn5cgnn5ms3zzyjan2rq06kaqcgzhld4cjh";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
2021-10-14 00:43:12 +00:00
|
|
|
cargoSha256 = "00g06zf0m1wry0mhf098pw99kbb99d8a17985pb90yf1w74rdkh6";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
checkFlags = [
|
|
|
|
# uses internet
|
|
|
|
"--skip non_existent_http_link --skip working_http_check"
|
2021-12-06 16:07:01 +00:00
|
|
|
] ++ lib.optional (stdenv.hostPlatform.system != "x86_64-linux")
|
|
|
|
# assumes the target is x86_64-unknown-linux-gnu
|
|
|
|
"--skip simple_project::it_checks_okay_project_correctly";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optional stdenv.isDarwin Security;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Cargo subcommand to check rust documentation for broken links";
|
|
|
|
homepage = "https://github.com/deadlinks/cargo-deadlinks";
|
2021-10-14 00:43:12 +00:00
|
|
|
changelog = "https://github.com/deadlinks/cargo-deadlinks/blob/${version}/CHANGELOG.md";
|
2021-09-22 15:38:15 +00:00
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
2023-08-22 20:05:09 +00:00
|
|
|
maintainers = with maintainers; [ newam matthiasbeyer ];
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
}
|