Files
nixpkgs/pkgs/development/ocaml-modules/cmarkit/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

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";
};
}