2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake }:
|
2020-12-09 12:39:15 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "cmark-gfm";
|
2022-09-22 12:36:57 +00:00
|
|
|
version = "0.29.0.gfm.6";
|
2020-12-09 12:39:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "github";
|
|
|
|
repo = "cmark-gfm";
|
|
|
|
rev = version;
|
2022-09-22 12:36:57 +00:00
|
|
|
sha256 = "sha256-ekHY5EGSrJrQwlXNjKpyj7k0Bzq1dYPacRsfNZ8K+lk=";
|
2020-12-09 12:39:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2022-09-22 12:36:57 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2020-12-09 12:39:15 +00:00
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
# remove when https://github.com/github/cmark-gfm/pull/248 merged and released
|
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace $out/include/cmark-gfm-core-extensions.h \
|
|
|
|
--replace '#include "config.h"' '#include <stdbool.h>'
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-09 12:39:15 +00:00
|
|
|
description = "GitHub's fork of cmark, a CommonMark parsing and rendering library and program in C";
|
|
|
|
homepage = "https://github.com/github/cmark-gfm";
|
|
|
|
maintainers = with maintainers; [ cyplo ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.bsd2;
|
|
|
|
};
|
|
|
|
}
|