40 lines
987 B
Nix
40 lines
987 B
Nix
|
|
{
|
||
|
|
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";
|
||
|
|
};
|
||
|
|
}
|