b41113241d
GitOrigin-RevId: ae1dc133ea5f1538d035af41e5ddbc2ebcb67b90
30 lines
863 B
Nix
30 lines
863 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "cmark-gfm";
|
|
version = "0.29.0.gfm.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "github";
|
|
repo = "cmark-gfm";
|
|
rev = version;
|
|
sha256 = "sha256-ekHY5EGSrJrQwlXNjKpyj7k0Bzq1dYPacRsfNZ8K+lk=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
doCheck = true;
|
|
|
|
# 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>'
|
|
'';
|
|
|
|
meta = with lib; {
|
|
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;
|
|
};
|
|
}
|