nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 cmake,
6 perl,
7 pkg-config,
8}:
9
10stdenv.mkDerivation (finalAttrs: {
11 pname = "multimarkdown";
12 version = "6.7.0";
13
14 src = fetchFromGitHub {
15 owner = "fletcher";
16 repo = "MultiMarkdown-6";
17 tag = finalAttrs.version;
18 hash = "sha256-b6yCn0NFpONI7WwfjDOc0d2nCKMIiUXi+rsnytiNc0Q=";
19 };
20
21 postPatch = ''
22 patchShebangs tools/enumsToPerl.pl
23 '';
24
25 nativeBuildInputs = [
26 cmake
27 perl
28 pkg-config
29 ];
30
31 meta = {
32 homepage = "https://fletcher.github.io/MultiMarkdown-6/introduction.html";
33 description = "Derivative of Markdown that adds new syntax features";
34 longDescription = ''
35 MultiMarkdown is a lightweight markup language created by
36 Fletcher T. Penney and based on Markdown, which supports
37 more export-formats (html, latex, beamer, memoir, odf, opml,
38 lyx, mmd) and implements some added features currently not
39 available with plain Markdown syntax.
40
41 It adds the following features to Markdown:
42
43 - footnotes
44 - tables
45 - citations and bibliography (works best in LaTeX using BibTeX)
46 - math support
47 - automatic cross-referencing ability
48 - smart typography, with support for multiple languages
49 - image attributes
50 - table and image captions
51 - definition lists
52 - glossary entries (LaTeX only)
53 - document metadata (e.g. title, author, date, etc.)
54 '';
55 license = with lib.licenses; [ mit ];
56 platforms = lib.platforms.all;
57 maintainers = with lib.maintainers; [ ];
58 };
59})