nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 cmdliner,
5 fetchurl,
6 findlib,
7 ocaml,
8 ocamlbuild,
9 topkg,
10}:
11
12stdenv.mkDerivation rec {
13 pname = "cmarkit";
14 version = "0.3.0";
15
16 src = fetchurl {
17 url = "https://erratique.ch/software/cmarkit/releases/cmarkit-${version}.tbz";
18 hash = "sha256-RouM5iU7VeTT0+4yhBgdEmxROeP/X31iqDjd1VI7z5c=";
19 };
20
21 nativeBuildInputs = [
22 ocaml
23 findlib
24 ocamlbuild
25 topkg
26 ];
27
28 buildInputs = [
29 topkg
30 cmdliner
31 ];
32
33 strictDeps = true;
34
35 inherit (topkg) buildPhase installPhase;
36
37 meta = {
38 description = "CommonMark parser and renderer for OCaml";
39 homepage = "https://erratique.ch/software/cmarkit";
40 changelog = "https://github.com/dbuenzli/cmarkit/blob/v${version}/CHANGES.md";
41 license = lib.licenses.isc;
42 maintainers = [ ];
43 inherit (ocaml.meta) platforms;
44 broken = lib.versionOlder ocaml.version "4.14.0";
45 };
46}