diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2022-02-12 16:25:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-12 16:25:24 -0500 |
commit | c2baa946c10b12685f3879bfeec93dad2e179745 (patch) | |
tree | a86dd660c2b1518803e04d8409b11edf0dc847b1 /pkgs/tools/text | |
parent | cc9c5c81f089894572cde93cb8b79343ba157417 (diff) | |
parent | 64fe70cd549854949ced8e687d8e9ea98ec6ccf7 (diff) |
Merge pull request #151457 from zhaofengli/mdbook-linkcheck
mdbook-linkcheck: init at 0.7.6
Diffstat (limited to 'pkgs/tools/text')
-rw-r--r-- | pkgs/tools/text/mdbook-linkcheck/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/text/mdbook-linkcheck/default.nix b/pkgs/tools/text/mdbook-linkcheck/default.nix new file mode 100644 index 0000000000000..b37b16876b0f1 --- /dev/null +++ b/pkgs/tools/text/mdbook-linkcheck/default.nix @@ -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 ]; + }; +} |