3
0
Fork 0
forked from mirrors/nixpkgs

ocamlPackages.cmarkit: init at 0.1.0

This commit is contained in:
Mario Rodas 2023-05-13 04:20:00 +00:00 committed by Vincent Laporte
parent e28384a49f
commit a9a1928bd2
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,48 @@
{ lib
, stdenv
, cmdliner
, fetchurl
, findlib
, ocaml
, ocamlbuild
, topkg
}:
if lib.versionOlder ocaml.version "4.14.0"
then throw "cmarkit is not available for OCaml ${ocaml.version}"
else
stdenv.mkDerivation rec {
pname = "cmarkit";
version = "0.1.0";
src = fetchurl {
url = "https://erratique.ch/software/cmarkit/releases/cmarkit-${version}.tbz";
hash = "sha256-pLPCLlwJt5W5R92HPY8gGpisyjlbSaaEe0HLuJlkjuY=";
};
nativeBuildInputs = [
ocaml
findlib
ocamlbuild
topkg
];
buildInputs = [
topkg
cmdliner
];
strictDeps = true;
inherit (topkg) buildPhase installPhase;
meta = with lib; {
description = "CommonMark parser and renderer for OCaml";
homepage = "https://erratique.ch/software/cmarkit";
changelog = "https://github.com/dbuenzli/cmarkit/blob/v${version}/CHANGES.md";
license = licenses.isc;
maintainers = [ maintainers.marsam ];
inherit (ocaml.meta) platforms;
};
}

View file

@ -196,6 +196,8 @@ let
class_group_vdf = callPackage ../development/ocaml-modules/class_group_vdf { };
cmarkit = callPackage ../development/ocaml-modules/cmarkit { };
# The 1.1.0 release broke a lot of packages and is not compatible with
# OCaml < 4.08.
cmdliner =