about summary refs log tree commit diff
path: root/pkgs/tools/typesetting/multimarkdown
diff options
context:
space:
mode:
authorAndreas Wagner <andreas.wagner@lowfatcomputing.org>2015-08-31 09:52:01 -0400
committerAndreas Wagner <andreas.wagner@lowfatcomputing.org>2015-09-01 06:52:54 -0400
commitbea3ba66bb5eb4921a48e606bfb8d8841773ef4a (patch)
tree1a065f77963ef2622ce7fb040a5b758ea1ffe4c9 /pkgs/tools/typesetting/multimarkdown
parentea7b5bb8b0462a01fc5288eb94dca0b0d779bd2b (diff)
downloadnixlib-bea3ba66bb5eb4921a48e606bfb8d8841773ef4a.tar
nixlib-bea3ba66bb5eb4921a48e606bfb8d8841773ef4a.tar.gz
nixlib-bea3ba66bb5eb4921a48e606bfb8d8841773ef4a.tar.bz2
nixlib-bea3ba66bb5eb4921a48e606bfb8d8841773ef4a.tar.lz
nixlib-bea3ba66bb5eb4921a48e606bfb8d8841773ef4a.tar.xz
nixlib-bea3ba66bb5eb4921a48e606bfb8d8841773ef4a.tar.zst
nixlib-bea3ba66bb5eb4921a48e606bfb8d8841773ef4a.zip
multimarkdown: init at 4.7.1
Diffstat (limited to 'pkgs/tools/typesetting/multimarkdown')
-rw-r--r--pkgs/tools/typesetting/multimarkdown/default.nix52
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/multimarkdown/default.nix b/pkgs/tools/typesetting/multimarkdown/default.nix
new file mode 100644
index 000000000000..1b6104106ba4
--- /dev/null
+++ b/pkgs/tools/typesetting/multimarkdown/default.nix
@@ -0,0 +1,52 @@
+{ stdenv, fetchgit, perl }:
+
+stdenv.mkDerivation rec {
+  name = "multimarkdown-${version}";
+  version = "4.7.1";
+
+  src = fetchgit {
+    url = "https://github.com/fletcher/MultiMarkdown-4.git";
+    fetchSubmodules = true;
+    rev = "dd060247518715ef2b52be22b8f49d0e6d2c3a8b";
+    sha256 = "0s7rcxgmv1almlic7bky426x52h7g1pjdhi3y8wf84fpx8c7b6g2";
+  };
+
+  preBuild = ''
+    substituteInPlace enumsToPerl.pl --replace "/usr/bin/perl" "${perl}/bin/perl"
+  '';
+
+  buildInputs = [ stdenv ];
+  checkPhase = "make test-all";
+  installPhase = "make pkg-install prefix='' DESTDIR=$out; make pkg-install-scripts prefix='' DESTDIR=$out";
+
+  meta = with stdenv.lib; {
+    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:
+
+      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.)
+    '';
+    homepage = "http://fletcherpenney.net/multimarkdown/";
+    # licensed under GPLv2+ or MIT:
+    # https://raw.githubusercontent.com/fletcher/MultiMarkdown-4/master/LICENSE
+    license = with stdenv.lib.licenses; [ gpl2Plus ];
+    hydraPlatforms = platforms.all;
+    maintainers = with stdenv.lib.maintainers; [ lowfatcomputing ];
+  };
+}