diff options
Diffstat (limited to 'nixpkgs/pkgs/development/ocaml-modules/mdx/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/ocaml-modules/mdx/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/ocaml-modules/mdx/default.nix b/nixpkgs/pkgs/development/ocaml-modules/mdx/default.nix new file mode 100644 index 000000000000..29fee1b63184 --- /dev/null +++ b/nixpkgs/pkgs/development/ocaml-modules/mdx/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchFromGitHub, buildDunePackage, astring, cmdliner, cppo, fmt, logs, ocaml-migrate-parsetree, ocaml_lwt, pandoc, re }: + +buildDunePackage rec { + pname = "mdx"; + version = "1.4.0"; + + minimumOCamlVersion = "4.05"; + + src = fetchFromGitHub { + owner = "realworldocaml"; + repo = pname; + rev = version; + sha256 = "0ljd00d261s2wf7cab086asqi39icf9zs4nylni6dldaqb027d4w"; + }; + + nativeBuildInputs = [ cppo ]; + buildInputs = [ astring cmdliner fmt logs ocaml-migrate-parsetree re ]; + checkInputs = [ ocaml_lwt pandoc ]; + + doCheck = true; + + meta = { + homepage = https://github.com/realworldocaml/mdx; + description = "Executable OCaml code blocks inside markdown files"; + license = stdenv.lib.licenses.isc; + maintainers = [ stdenv.lib.maintainers.romildo ]; + }; +} |