mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
011dd72d6a
Don’t strip for OCaml 4.04
29 lines
875 B
Nix
29 lines
875 B
Nix
{ lib, fetchFromGitHub, buildDunePackage, ocaml, astring, cmdliner, cppo, fmt, logs, ocaml-migrate-parsetree, ocaml_lwt, pandoc, re }:
|
|
|
|
buildDunePackage rec {
|
|
pname = "mdx";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "realworldocaml";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "0ljd00d261s2wf7cab086asqi39icf9zs4nylni6dldaqb027d4w";
|
|
};
|
|
|
|
nativeBuildInputs = [ cppo ];
|
|
buildInputs = [ astring cmdliner fmt logs ocaml-migrate-parsetree re ];
|
|
checkInputs = lib.optionals doCheck [ ocaml_lwt pandoc ];
|
|
|
|
doCheck = !lib.versionAtLeast ocaml.version "4.08";
|
|
|
|
dontStrip = lib.versions.majorMinor ocaml.version == "4.04";
|
|
|
|
meta = {
|
|
homepage = https://github.com/realworldocaml/mdx;
|
|
description = "Executable OCaml code blocks inside markdown files";
|
|
license = lib.licenses.isc;
|
|
maintainers = [ lib.maintainers.romildo ];
|
|
};
|
|
}
|