Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
918 B
Nix
Raw Permalink Normal View History

2024-07-19 17:18:23 -04:00
{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
}:
let
2025-07-08 02:23:24 +00:00
version = "1.0.0";
2024-07-19 17:18:23 -04:00
in
rustPlatform.buildRustPackage {
pname = "markuplinkchecker";
inherit version;
src = fetchFromGitHub {
owner = "becheran";
repo = "mlc";
rev = "v${version}";
2025-07-08 02:23:24 +00:00
hash = "sha256-Bj1Yf+lrKwMvYnE/YVb+KC8tZtRr2OkWoYxQChLINyY=";
2024-07-19 17:18:23 -04:00
};
2025-07-08 02:23:24 +00:00
cargoHash = "sha256-r3LGWJ5RsvWRXNVXWIM83quC3AT8T+WDfSJnD3sVoOM=";
2024-07-19 17:18:23 -04:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
2024-07-19 17:18:23 -04:00
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;
2024-07-25 02:08:14 +02:00
maintainers = with lib.maintainers; [
anas
];
2024-07-19 17:18:23 -04:00
mainProgram = "mlc";
};
}