Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
33 lines
847 B
Nix
33 lines
847 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|