nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 32 lines 1.1 kB view raw
1{ lib, stdenv, rustPlatform, fetchFromGitHub, Security }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "cargo-deadlinks"; 5 version = "0.8.1"; 6 7 src = fetchFromGitHub { 8 owner = "deadlinks"; 9 repo = pname; 10 rev = "${version}"; 11 sha256 = "0s5q9aghncsk9834azn5cgnn5ms3zzyjan2rq06kaqcgzhld4cjh"; 12 }; 13 14 cargoSha256 = "00g06zf0m1wry0mhf098pw99kbb99d8a17985pb90yf1w74rdkh6"; 15 16 checkFlags = [ 17 # uses internet 18 "--skip non_existent_http_link --skip working_http_check" 19 ] ++ lib.optional (stdenv.hostPlatform.system != "x86_64-linux") 20 # assumes the target is x86_64-unknown-linux-gnu 21 "--skip simple_project::it_checks_okay_project_correctly"; 22 23 buildInputs = lib.optional stdenv.isDarwin Security; 24 25 meta = with lib; { 26 description = "Cargo subcommand to check rust documentation for broken links"; 27 homepage = "https://github.com/deadlinks/cargo-deadlinks"; 28 changelog = "https://github.com/deadlinks/cargo-deadlinks/blob/${version}/CHANGELOG.md"; 29 license = with licenses; [ asl20 /* or */ mit ]; 30 maintainers = with maintainers; [ newam ]; 31 }; 32}