nixpkgs/pkgs/tools/typesetting/multimarkdown/default.nix

59 lines
1.5 KiB
Nix
Raw Normal View History

2021-03-27 17:58:19 +00:00
{ lib
, stdenv
, fetchFromGitHub
, cmake
, perl
, pkg-config
}:
2015-08-31 13:52:01 +00:00
2021-03-27 17:58:19 +00:00
stdenv.mkDerivation rec {
pname = "multimarkdown";
2021-03-27 17:58:19 +00:00
version = "6.6.0";
2015-08-31 13:52:01 +00:00
2021-03-27 17:58:19 +00:00
src = fetchFromGitHub {
owner = "fletcher";
repo = "MultiMarkdown-6";
rev = version;
hash = "sha256-emJbY0wucoc/GdjlILoeqjwuwuPpTjXTqZN0gUKOyLg=";
2015-08-31 13:52:01 +00:00
};
2021-03-27 17:58:19 +00:00
postPatch = ''
patchShebangs tools/enumsToPerl.pl
2015-08-31 13:52:01 +00:00
'';
2021-03-27 17:58:19 +00:00
nativeBuildInputs = [
cmake
perl
pkg-config
];
2015-08-31 13:52:01 +00:00
meta = with lib; {
2021-03-27 17:58:19 +00:00
homepage = "https://fletcher.github.io/MultiMarkdown-6/introduction.html";
2015-08-31 13:52:01 +00:00
description = "A 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:
2021-03-27 17:58:19 +00:00
- 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.)
2015-08-31 13:52:01 +00:00
'';
2021-03-27 17:58:19 +00:00
license = with licenses; [ mit ];
platforms = platforms.all;
2021-03-27 17:58:19 +00:00
maintainers = with maintainers; [ AndersonTorres ];
2015-08-31 13:52:01 +00:00
};
}