{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, }: let version = "0.22.0"; in rustPlatform.buildRustPackage { pname = "markuplinkchecker"; inherit version; src = fetchFromGitHub { owner = "becheran"; repo = "mlc"; rev = "v${version}"; hash = "sha256-3saRIAKVTCi145hoD0SGPloCeIwVKR3Wp3Qo3zo9g7k="; }; cargoHash = "sha256-DHpOReEdufQ4++74CJDnW6EJtUwhtq+RgZ6hVGqHkKE="; nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl ]; env = { OPENSSL_NO_VENDOR = true; }; doCheck = false; # tests require an internet connection meta = { description = "Check for broken links in markup files"; homepage = "https://github.com/becheran/mlc"; changelog = "https://github.com/becheran/mlc/blob/v${version}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ anas ]; mainProgram = "mlc"; }; }