2017-05-11 00:35:54 -07:00
|
|
|
{ stdenv, fetchFromGitHub, cmake }:
|
2016-01-04 01:06:37 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-14 04:48:24 -07:00
|
|
|
version = "0.29.0";
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "cmark";
|
2016-01-04 01:06:37 -08:00
|
|
|
|
2017-05-11 00:35:54 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jgm";
|
|
|
|
repo = "cmark";
|
|
|
|
rev = version;
|
2019-04-14 04:48:24 -07:00
|
|
|
sha256 = "0r7jpqhgnssq444i8pwji2g36058vfzwkl70wbiwj13h4w5rfc8f";
|
2016-01-04 01:06:37 -08:00
|
|
|
};
|
|
|
|
|
2017-05-10 23:57:09 -07:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2018-03-07 20:11:52 -08:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2018-11-18 12:33:09 -08:00
|
|
|
preCheck = ''
|
2017-05-11 00:35:54 -07:00
|
|
|
export LD_LIBRARY_PATH=$(readlink -f ./src)
|
|
|
|
'';
|
2016-01-04 01:06:37 -08:00
|
|
|
|
2017-05-11 00:35:54 -07:00
|
|
|
meta = with stdenv.lib; {
|
2016-01-04 01:06:37 -08:00
|
|
|
description = "CommonMark parsing and rendering library and program in C";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/jgm/cmark";
|
2017-05-11 00:35:54 -07:00
|
|
|
maintainers = [ maintainers.michelk ];
|
|
|
|
platforms = platforms.unix;
|
2018-09-30 02:22:23 -07:00
|
|
|
license = licenses.bsd2;
|
2016-01-04 01:06:37 -08:00
|
|
|
};
|
|
|
|
}
|