Files

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

33 lines
847 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "markdown2html-converter";
version = "1.1.12";
src = fetchFromGitHub {
owner = "magiclen";
repo = "markdown2html-converter";
tag = "v${version}";
hash = "sha256-C35TCmcskhK3sHbkUp3kEaTA4P7Ls5Rn6ahUbzy7KXY=";
};
cargoLock.lockFile = ./Cargo.lock;
postPatch = ''
ln -s ${./Cargo.lock} Cargo.lock
'';
meta = {
changelog = "https://github.com/magiclen/markdown2html-converter/releases/tag/v${version}";
description = "Tool for converting a Markdown file to a single HTML file with built-in CSS and JS";
homepage = "https://github.com/magiclen/markdown2html-converter";
license = lib.licenses.mit;
mainProgram = "markdown2html-converter";
maintainers = with lib.maintainers; [ tomasajt ];
};
}