841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
35 lines
818 B
Nix
35 lines
818 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cmark";
|
|
version = "0.30.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jgm";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-SU31kJL+8wt57bGW5fNeXjXPgPeCXZIknZwDxMXCfdc=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
cmakeFlags = [
|
|
# https://github.com/commonmark/cmark/releases/tag/0.30.0
|
|
# recommends distributions dynamically link
|
|
"-DCMARK_STATIC=OFF"
|
|
];
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
preCheck = ''
|
|
export LD_LIBRARY_PATH=$(readlink -f ./src)
|
|
'';
|
|
|
|
meta = with 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;
|
|
};
|
|
}
|