Files
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

69 lines
1.8 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
cmake,
perl,
pkg-config,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "multimarkdown";
version = "6.7.0";
src = fetchFromGitHub {
owner = "fletcher";
repo = "MultiMarkdown-6";
tag = finalAttrs.version;
hash = "sha256-b6yCn0NFpONI7WwfjDOc0d2nCKMIiUXi+rsnytiNc0Q=";
};
patches = [
(fetchpatch {
name = "multimarkdown-fix-cmake-4.patch";
url = "https://github.com/fletcher/MultiMarkdown-6/commit/655c0908155758e7c94858af2fb99dc992709075.patch";
hash = "sha256-d1b5NcBQDVnbmTvVnPyiTS8aSx/VGgRLHD0nSs+JksI=";
})
];
postPatch = ''
patchShebangs tools/enumsToPerl.pl
'';
nativeBuildInputs = [
cmake
perl
pkg-config
];
meta = {
homepage = "https://fletcher.github.io/MultiMarkdown-6/introduction.html";
description = "Derivative of Markdown that adds new syntax features";
longDescription = ''
MultiMarkdown is a lightweight markup language created by
Fletcher T. Penney and based on Markdown, which supports
more export-formats (html, latex, beamer, memoir, odf, opml,
lyx, mmd) and implements some added features currently not
available with plain Markdown syntax.
It adds the following features to Markdown:
- footnotes
- tables
- citations and bibliography (works best in LaTeX using BibTeX)
- math support
- automatic cross-referencing ability
- smart typography, with support for multiple languages
- image attributes
- table and image captions
- definition lists
- glossary entries (LaTeX only)
- document metadata (e.g. title, author, date, etc.)
'';
license = with lib.licenses; [ mit ];
platforms = lib.platforms.all;
maintainers = [ ];
};
})