nixpkgs/pkgs/by-name/ru/rumdl/package.nix

67 lines
1.4 KiB
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "rumdl";
version = "0.0.169";
src = fetchFromGitHub {
owner = "rvben";
repo = "rumdl";
tag = "v${finalAttrs.version}";
hash = "sha256-1ly0bAA8NGGqdF6U/BYGvr+aR6OU0ArbK7A0vAMdtlQ=";
};
cargoHash = "sha256-qnNm69SM3pt0LAIOvu0xhnTFft+SCD2LmY3hNoturmo=";
cargoBuildFlags = [
"--bin=rumdl"
];
__darwinAllowLocalNetworking = true; # required for LSP tests
useNextest = true;
cargoTestFlags = [
"--profile ci"
];
checkFlags = [
# Skip Windows tests
"--skip comprehensive_windows_tests"
"--skip windows_vscode_tests"
];
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = "--version";
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Markdown linter and formatter";
longDescription = ''
rumdl is a high-performance Markdown linter and formatter
that helps ensure consistency and best practices in your Markdown files.
'';
homepage = "https://github.com/rvben/rumdl";
changelog = "https://github.com/rvben/rumdl/blob/v${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
kachick
hasnep
];
mainProgram = "rumdl";
platforms = with lib.platforms; unix ++ windows;
};
})