567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
47 lines
887 B
Nix
47 lines
887 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
cmdliner,
|
|
fetchurl,
|
|
findlib,
|
|
ocaml,
|
|
ocamlbuild,
|
|
topkg,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cmarkit";
|
|
version = "0.3.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://erratique.ch/software/cmarkit/releases/cmarkit-${version}.tbz";
|
|
hash = "sha256-RouM5iU7VeTT0+4yhBgdEmxROeP/X31iqDjd1VI7z5c=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
ocaml
|
|
findlib
|
|
ocamlbuild
|
|
topkg
|
|
];
|
|
|
|
buildInputs = [
|
|
topkg
|
|
cmdliner
|
|
];
|
|
|
|
strictDeps = true;
|
|
|
|
inherit (topkg) buildPhase installPhase;
|
|
|
|
meta = {
|
|
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 = lib.licenses.isc;
|
|
maintainers = [ ];
|
|
inherit (ocaml.meta) platforms;
|
|
broken = lib.versionOlder ocaml.version "4.14.0";
|
|
};
|
|
}
|