1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 openssl,
7}:
8let
9 version = "0.22.0";
10in
11rustPlatform.buildRustPackage {
12 pname = "markuplinkchecker";
13 inherit version;
14
15 src = fetchFromGitHub {
16 owner = "becheran";
17 repo = "mlc";
18 rev = "v${version}";
19 hash = "sha256-3saRIAKVTCi145hoD0SGPloCeIwVKR3Wp3Qo3zo9g7k=";
20 };
21
22 cargoHash = "sha256-DHpOReEdufQ4++74CJDnW6EJtUwhtq+RgZ6hVGqHkKE=";
23
24 nativeBuildInputs = [ pkg-config ];
25
26 buildInputs = [ openssl ];
27
28 env = {
29 OPENSSL_NO_VENDOR = true;
30 };
31
32 doCheck = false; # tests require an internet connection
33
34 meta = {
35 description = "Check for broken links in markup files";
36 homepage = "https://github.com/becheran/mlc";
37 changelog = "https://github.com/becheran/mlc/blob/v${version}/CHANGELOG.md";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [
40 anas
41 ];
42 mainProgram = "mlc";
43 };
44}