git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #117818 from AndersonTorres/updates

multimarkdown: 4.7.1 -> 6.6.0

commit671d4921280a7abdcf1a1c5105846a95a7c7e6aa authorAnderson Torres <torres.anderson.85@protonmail.com> dateMon 29 Mar 2021, 11:50 (6 years ago) parent42ed94c2d4ee2d
1 file changed+35−29
pkgs/tools/typesetting/multimarkdown/default.nix+35−29
pkgs/tools/typesetting/multimarkdown/default.nix+35−29
@@ -1,25 +1,34 @@
1−{ lib, stdenv, fetchgit, perl }:
1+{ lib
2+, stdenv
3+, fetchFromGitHub
4+, cmake
5+, perl
6+, pkg-config
7+}:
28
3−stdenv.mkDerivation {
9+stdenv.mkDerivation rec {
410 pname = "multimarkdown";
5− version = "4.7.1";
11+ version = "6.6.0";
612
7− src = fetchgit {
8− url = "https://github.com/fletcher/MultiMarkdown-4.git";
9− fetchSubmodules = true;
10− rev = "dd060247518715ef2b52be22b8f49d0e6d2c3a8b";
11− sha256 = "11f246r30q2fx4xw7valhqjj4mc4ydj5fv5f2kbl5h93y69q0bw7";
13+ src = fetchFromGitHub {
14+ owner = "fletcher";
15+ repo = "MultiMarkdown-6";
16+ rev = version;
17+ hash = "sha256-emJbY0wucoc/GdjlILoeqjwuwuPpTjXTqZN0gUKOyLg=";
1218 };
1319
14− preBuild = ''
15− substituteInPlace enumsToPerl.pl --replace "/usr/bin/perl" "${perl}/bin/perl"
20+ postPatch = ''
21+ patchShebangs tools/enumsToPerl.pl
1622 '';
1723
18− buildInputs = [ stdenv ];
19− checkPhase = "make test-all";
20− installPhase = "make pkg-install prefix='' DESTDIR=$out; make pkg-install-scripts prefix='' DESTDIR=$out";
24+ nativeBuildInputs = [
25+ cmake
26+ perl
27+ pkg-config
28+ ];
2129
2230 meta = with lib; {
31+ homepage = "https://fletcher.github.io/MultiMarkdown-6/introduction.html";
2332 description = "A derivative of Markdown that adds new syntax features";
2433 longDescription = ''
2534 MultiMarkdown is a lightweight markup language created by
@@ -30,23 +39,20 @@ stdenv.mkDerivation {
3039
3140 It adds the following features to Markdown:
3241
33− footnotes
34− tables
35− citations and bibliography (works best in LaTeX using BibTeX)
36− math support
37− automatic cross-referencing ability
38− smart typography, with support for multiple languages
39− image attributes
40− table and image captions
41− definition lists
42− glossary entries (LaTeX only)
43− document metadata (e.g. title, author, date, etc.)
42+ - footnotes
43+ - tables
44+ - citations and bibliography (works best in LaTeX using BibTeX)
45+ - math support
46+ - automatic cross-referencing ability
47+ - smart typography, with support for multiple languages
48+ - image attributes
49+ - table and image captions
50+ - definition lists
51+ - glossary entries (LaTeX only)
52+ - document metadata (e.g. title, author, date, etc.)
4453 '';
45− homepage = "https://fletcherpenney.net/multimarkdown/";
46− # licensed under GPLv2+ or MIT:
47− # https://raw.githubusercontent.com/fletcher/MultiMarkdown-4/master/LICENSE
48− license = with lib.licenses; [ gpl2Plus mit ];
54+ license = with licenses; [ mit ];
4955 platforms = platforms.all;
50− maintainers = with lib.maintainers; [ lowfatcomputing ];
56+ maintainers = with maintainers; [ AndersonTorres ];
5157 };
5258}