ocamlPackages.mdx: disable tests for OCaml ≥ 4.08
Don’t strip for OCaml 4.04
This commit is contained in:
parent
25544be831
commit
011dd72d6a
@ -1,11 +1,9 @@
|
|||||||
{ stdenv, fetchFromGitHub, buildDunePackage, astring, cmdliner, cppo, fmt, logs, ocaml-migrate-parsetree, ocaml_lwt, pandoc, re }:
|
{ lib, fetchFromGitHub, buildDunePackage, ocaml, astring, cmdliner, cppo, fmt, logs, ocaml-migrate-parsetree, ocaml_lwt, pandoc, re }:
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "mdx";
|
pname = "mdx";
|
||||||
version = "1.4.0";
|
version = "1.4.0";
|
||||||
|
|
||||||
minimumOCamlVersion = "4.05";
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "realworldocaml";
|
owner = "realworldocaml";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
@ -15,14 +13,16 @@ buildDunePackage rec {
|
|||||||
|
|
||||||
nativeBuildInputs = [ cppo ];
|
nativeBuildInputs = [ cppo ];
|
||||||
buildInputs = [ astring cmdliner fmt logs ocaml-migrate-parsetree re ];
|
buildInputs = [ astring cmdliner fmt logs ocaml-migrate-parsetree re ];
|
||||||
checkInputs = [ ocaml_lwt pandoc ];
|
checkInputs = lib.optionals doCheck [ ocaml_lwt pandoc ];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = !lib.versionAtLeast ocaml.version "4.08";
|
||||||
|
|
||||||
|
dontStrip = lib.versions.majorMinor ocaml.version == "4.04";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = https://github.com/realworldocaml/mdx;
|
homepage = https://github.com/realworldocaml/mdx;
|
||||||
description = "Executable OCaml code blocks inside markdown files";
|
description = "Executable OCaml code blocks inside markdown files";
|
||||||
license = stdenv.lib.licenses.isc;
|
license = lib.licenses.isc;
|
||||||
maintainers = [ stdenv.lib.maintainers.romildo ];
|
maintainers = [ lib.maintainers.romildo ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user