nixpkgs/pkgs/development/libraries/cmark/default.nix

28 lines
684 B
Nix
Raw Normal View History

2017-05-11 00:35:54 -07:00
{ stdenv, fetchFromGitHub, cmake }:
2016-01-04 01:06:37 -08:00
stdenv.mkDerivation rec {
version = "0.28.3";
2016-01-04 01:06:37 -08:00
name = "cmark-${version}";
2017-05-11 00:35:54 -07:00
src = fetchFromGitHub {
owner = "jgm";
repo = "cmark";
rev = version;
sha256 = "1lal6n6q7l84njgdcq1xbfxan56qlvr8xaw9m2jbd0jk4y2wkczg";
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;
2017-05-11 00:35:54 -07:00
checkPhase = ''
export LD_LIBRARY_PATH=$(readlink -f ./src)
CTEST_OUTPUT_ON_FAILURE=1 make test
'';
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";
homepage = https://github.com/jgm/cmark;
2017-05-11 00:35:54 -07:00
maintainers = [ maintainers.michelk ];
platforms = platforms.unix;
2016-01-04 01:06:37 -08:00
};
}