From 5b372639a62991e8b9ba74f52c500fea204db994 Mon Sep 17 00:00:00 2001 From: Scandiravian Date: Wed, 18 Feb 2026 11:56:30 +0100 Subject: [PATCH] mdbook-linkcheck2: init at 0.11 --- pkgs/by-name/md/mdbook-linkcheck2/package.nix | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/md/mdbook-linkcheck2/package.nix diff --git a/pkgs/by-name/md/mdbook-linkcheck2/package.nix b/pkgs/by-name/md/mdbook-linkcheck2/package.nix new file mode 100644 index 000000000000..d7375d7ded59 --- /dev/null +++ b/pkgs/by-name/md/mdbook-linkcheck2/package.nix @@ -0,0 +1,34 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + testers, + mdbook-linkcheck2, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "mdbook-linkcheck2"; + version = "0.12.0"; + + src = fetchFromGitHub { + owner = "marxin"; + repo = "mdbook-linkcheck2"; + tag = "v${finalAttrs.version}"; + sha256 = "sha256-SvheBEIWiL1zdYeMQalbBeAQC86DycqV1/PTA+0S7Gg="; + }; + + cargoHash = "sha256-s4nvVHl/bViIxZfqc4SxSnCCYIY/hxy0C7f2/9ztqts="; + + doCheck = false; # tries to access network to test broken web link functionality + + passthru.tests.version = testers.testVersion { package = mdbook-linkcheck2; }; + + meta = { + description = "Backend for mdbook which will check your links for you"; + mainProgram = "mdbook-linkcheck2"; + homepage = "https://github.com/marxin/mdbook-linkcheck2"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ + scandiravian + ]; + }; +})