Files

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

40 lines
987 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
rustPlatform,
fetchFromGitHub,
versionCheckHook,
nix-update-script,
}:
let
pname = "mdsf";
version = "0.10.7";
in
rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "hougesen";
repo = "mdsf";
tag = "v${version}";
hash = "sha256-DAniTRqFf+NNHPmmMWjBQN3M/quGDdjFMBezKcqVPnM=";
};
cargoHash = "sha256-h2D6FwI8YoCSp7UYy+4+TFt1JLCWoE5RZKmFfndsSHM=";
# many tests fail for various reasons of which most depend on the build sandbox
doCheck = false;
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
description = "Format markdown code blocks using your favorite tools";
homepage = "https://github.com/hougesen/mdsf";
changelog = "https://github.com/hougesen/mdsf/releases";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ luftmensch-luftmensch ];
mainProgram = "mdsf";
};
}