depot/third_party/nixpkgs/pkgs/development/libraries/cmark/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

27 lines
663 B
Nix

{ stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
version = "0.29.0";
pname = "cmark";
src = fetchFromGitHub {
owner = "jgm";
repo = "cmark";
rev = version;
sha256 = "0r7jpqhgnssq444i8pwji2g36058vfzwkl70wbiwj13h4w5rfc8f";
};
nativeBuildInputs = [ cmake ];
doCheck = !stdenv.isDarwin;
preCheck = ''
export LD_LIBRARY_PATH=$(readlink -f ./src)
'';
meta = with stdenv.lib; {
description = "CommonMark parsing and rendering library and program in C";
homepage = "https://github.com/jgm/cmark";
maintainers = [ maintainers.michelk ];
platforms = platforms.unix;
license = licenses.bsd2;
};
}