2025-07-28 00:37:25 -06:00

45 lines
918 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
}:
let
version = "1.0.0";
in
rustPlatform.buildRustPackage {
pname = "markuplinkchecker";
inherit version;
src = fetchFromGitHub {
owner = "becheran";
repo = "mlc";
rev = "v${version}";
hash = "sha256-Bj1Yf+lrKwMvYnE/YVb+KC8tZtRr2OkWoYxQChLINyY=";
};
cargoHash = "sha256-r3LGWJ5RsvWRXNVXWIM83quC3AT8T+WDfSJnD3sVoOM=";
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";
};
}