appflowy: browser login redirect (#376016)
[NixPkgs.git] / pkgs / by-name / ca / cargo-deadlinks / package.nix
blob67dda48c1ad5ef3f1ddd2f59c019286d008775bb
2   lib,
3   stdenv,
4   rustPlatform,
5   fetchFromGitHub,
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "cargo-deadlinks";
10   version = "0.8.1";
12   src = fetchFromGitHub {
13     owner = "deadlinks";
14     repo = pname;
15     rev = version;
16     sha256 = "0s5q9aghncsk9834azn5cgnn5ms3zzyjan2rq06kaqcgzhld4cjh";
17   };
19   cargoHash = "sha256-Bs6WyeHBeZDWLSidoFBLaa2ZEr8oAQcr8JmHCtw34AE=";
21   checkFlags =
22     [
23       # uses internet
24       "--skip non_existent_http_link --skip working_http_check"
25       # makes assumption about HTML paths that changed in rust 1.82.0
26       "--skip simple_project::it_checks_okay_project_correctly"
27       "--skip cli_args::it_passes_arguments_through_to_cargo"
28     ]
29     ++ lib.optional (stdenv.hostPlatform.system != "x86_64-linux")
30       # assumes the target is x86_64-unknown-linux-gnu
31       "--skip simple_project::it_checks_okay_project_correctly";
33   meta = with lib; {
34     description = "Cargo subcommand to check rust documentation for broken links";
35     homepage = "https://github.com/deadlinks/cargo-deadlinks";
36     changelog = "https://github.com/deadlinks/cargo-deadlinks/blob/${version}/CHANGELOG.md";
37     license = with licenses; [
38       asl20 # or
39       mit
40     ];
41     maintainers = with maintainers; [
42       newam
43       matthiasbeyer
44     ];
45   };