Merge pull request #151457 from zhaofengli/mdbook-linkcheck

mdbook-linkcheck: init at 0.7.6
This commit is contained in:
Mario Rodas 2022-02-12 16:25:24 -05:00 committed by GitHub
commit c2baa946c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

@ -0,0 +1,33 @@
{ lib, stdenv, fetchFromGitHub, rustPlatform, pkg-config, openssl, Security
, testVersion, mdbook-linkcheck }:
rustPlatform.buildRustPackage rec {
pname = "mdbook-linkcheck";
version = "0.7.6";
src = fetchFromGitHub {
owner = "Michael-F-Bryan";
repo = pname;
rev = "v${version}";
sha256 = "sha256-ZEOuA8W05800cnArscaGGOWTgzU6V3/wJiQcSx1MVkY=";
};
cargoSha256 = "sha256-EtPhbKvPHSnmPXemCzOXujlqqfdDSFaJpcZVJoHQq6U=";
buildInputs = if stdenv.isDarwin then [ Security ] else [ openssl ];
nativeBuildInputs = lib.optionals (!stdenv.isDarwin) [ pkg-config ];
OPENSSL_NO_VENDOR = 1;
doCheck = false; # tries to access network to test broken web link functionality
passthru.tests.version = testVersion { package = mdbook-linkcheck; };
meta = with lib; {
description = "A backend for `mdbook` which will check your links for you.";
homepage = "https://github.com/Michael-F-Bryan/mdbook-linkcheck";
license = licenses.mit;
maintainers = with maintainers; [ zhaofengli ];
};
}

@ -7203,6 +7203,10 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) CoreServices;
};
mdbook-linkcheck = callPackage ../tools/text/mdbook-linkcheck {
inherit (darwin.apple_sdk.frameworks) Security;
};
mdbook-mermaid = callPackage ../tools/text/mdbook-mermaid {
inherit (darwin.apple_sdk.frameworks) CoreServices;
};