3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/cmark/default.nix

28 lines
661 B
Nix
Raw Normal View History

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