about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2019-09-20 05:28:52 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2019-09-20 05:28:52 +0000
commit011dd72d6a792e1992e3b1166bee7e59b598b260 (patch)
treea56fbbccbd95116607f0458f4c2b4b5ccf9b65d5 /pkgs
parent25544be8315ed41326da972bd5bc2191236883f2 (diff)
downloadnixlib-011dd72d6a792e1992e3b1166bee7e59b598b260.tar
nixlib-011dd72d6a792e1992e3b1166bee7e59b598b260.tar.gz
nixlib-011dd72d6a792e1992e3b1166bee7e59b598b260.tar.bz2
nixlib-011dd72d6a792e1992e3b1166bee7e59b598b260.tar.lz
nixlib-011dd72d6a792e1992e3b1166bee7e59b598b260.tar.xz
nixlib-011dd72d6a792e1992e3b1166bee7e59b598b260.tar.zst
nixlib-011dd72d6a792e1992e3b1166bee7e59b598b260.zip
ocamlPackages.mdx: disable tests for OCaml ≥ 4.08
Don’t strip for OCaml 4.04
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/ocaml-modules/mdx/default.nix14
1 files changed, 7 insertions, 7 deletions
diff --git a/pkgs/development/ocaml-modules/mdx/default.nix b/pkgs/development/ocaml-modules/mdx/default.nix
index 29fee1b63184..0b43cf461e01 100644
--- a/pkgs/development/ocaml-modules/mdx/default.nix
+++ b/pkgs/development/ocaml-modules/mdx/default.nix
@@ -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 {
   pname = "mdx";
   version = "1.4.0";
 
-  minimumOCamlVersion = "4.05";
-
   src = fetchFromGitHub {
     owner = "realworldocaml";
     repo = pname;
@@ -15,14 +13,16 @@ buildDunePackage rec {
 
   nativeBuildInputs = [ cppo ];
   buildInputs = [ astring cmdliner fmt logs ocaml-migrate-parsetree re ];
-  checkInputs = [ ocaml_lwt pandoc ];
+  checkInputs = lib.optionals doCheck [ ocaml_lwt pandoc ];
+
+  doCheck = !lib.versionAtLeast ocaml.version "4.08";
 
-  doCheck = true;
+  dontStrip = lib.versions.majorMinor ocaml.version == "4.04";
 
   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 ];
+    license = lib.licenses.isc;
+    maintainers = [ lib.maintainers.romildo ];
   };
 }