Merge pull request #117818 from AndersonTorres/updates

multimarkdown: 4.7.1 -> 6.6.0
This commit is contained in:
Anderson Torres 2021-03-29 11:50:25 -03:00 committed by GitHub
commit 671d492128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,25 +1,34 @@
{ lib, stdenv, fetchgit, perl }: { lib
, stdenv
, fetchFromGitHub
, cmake
, perl
, pkg-config
}:
stdenv.mkDerivation { stdenv.mkDerivation rec {
pname = "multimarkdown"; pname = "multimarkdown";
version = "4.7.1"; version = "6.6.0";
src = fetchgit { src = fetchFromGitHub {
url = "https://github.com/fletcher/MultiMarkdown-4.git"; owner = "fletcher";
fetchSubmodules = true; repo = "MultiMarkdown-6";
rev = "dd060247518715ef2b52be22b8f49d0e6d2c3a8b"; rev = version;
sha256 = "11f246r30q2fx4xw7valhqjj4mc4ydj5fv5f2kbl5h93y69q0bw7"; hash = "sha256-emJbY0wucoc/GdjlILoeqjwuwuPpTjXTqZN0gUKOyLg=";
}; };
preBuild = '' postPatch = ''
substituteInPlace enumsToPerl.pl --replace "/usr/bin/perl" "${perl}/bin/perl" patchShebangs tools/enumsToPerl.pl
''; '';
buildInputs = [ stdenv ]; nativeBuildInputs = [
checkPhase = "make test-all"; cmake
installPhase = "make pkg-install prefix='' DESTDIR=$out; make pkg-install-scripts prefix='' DESTDIR=$out"; perl
pkg-config
];
meta = with lib; { meta = with lib; {
homepage = "https://fletcher.github.io/MultiMarkdown-6/introduction.html";
description = "A derivative of Markdown that adds new syntax features"; description = "A derivative of Markdown that adds new syntax features";
longDescription = '' longDescription = ''
MultiMarkdown is a lightweight markup language created by MultiMarkdown is a lightweight markup language created by
@ -30,23 +39,20 @@ stdenv.mkDerivation {
It adds the following features to Markdown: It adds the following features to Markdown:
footnotes - footnotes
tables - tables
citations and bibliography (works best in LaTeX using BibTeX) - citations and bibliography (works best in LaTeX using BibTeX)
math support - math support
automatic cross-referencing ability - automatic cross-referencing ability
smart typography, with support for multiple languages - smart typography, with support for multiple languages
image attributes - image attributes
table and image captions - table and image captions
definition lists - definition lists
glossary entries (LaTeX only) - glossary entries (LaTeX only)
document metadata (e.g. title, author, date, etc.) - document metadata (e.g. title, author, date, etc.)
''; '';
homepage = "https://fletcherpenney.net/multimarkdown/"; license = with licenses; [ mit ];
# licensed under GPLv2+ or MIT:
# https://raw.githubusercontent.com/fletcher/MultiMarkdown-4/master/LICENSE
license = with lib.licenses; [ gpl2Plus mit ];
platforms = platforms.all; platforms = platforms.all;
maintainers = with lib.maintainers; [ lowfatcomputing ]; maintainers = with maintainers; [ AndersonTorres ];
}; };
} }