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