From 0f4f35c7b05a559bee99bb2be45f850af8e3bda8 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Tue, 23 Aug 2022 08:04:50 +0200 Subject: [PATCH] =?UTF-8?q?ocamlPackages.fmt:=200.8.9=20=E2=86=92=200.9.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkgs/development/ocaml-modules/angstrom/default.nix | 2 +- pkgs/development/ocaml-modules/base64/default.nix | 2 +- .../ocaml-modules/bigarray-overlap/default.nix | 4 ++-- pkgs/development/ocaml-modules/bigstringaf/default.nix | 2 +- pkgs/development/ocaml-modules/callipyge/default.nix | 4 ++-- pkgs/development/ocaml-modules/caqti/default.nix | 4 ++-- pkgs/development/ocaml-modules/checkseum/default.nix | 4 ++-- pkgs/development/ocaml-modules/cow/default.nix | 4 ++-- pkgs/development/ocaml-modules/cstruct/default.nix | 4 ++-- pkgs/development/ocaml-modules/cstruct/sexp.nix | 4 ++-- pkgs/development/ocaml-modules/decompress/default.nix | 4 ++-- pkgs/development/ocaml-modules/dispatch/default.nix | 2 +- pkgs/development/ocaml-modules/domain-name/default.nix | 2 +- pkgs/development/ocaml-modules/duration/default.nix | 2 +- pkgs/development/ocaml-modules/emile/default.nix | 6 +++--- pkgs/development/ocaml-modules/faraday/default.nix | 2 +- pkgs/development/ocaml-modules/ff/default.nix | 4 ++-- pkgs/development/ocaml-modules/fmt/default.nix | 9 ++++----- pkgs/development/ocaml-modules/gmap/default.nix | 2 +- pkgs/development/ocaml-modules/graphql/parser.nix | 6 +++--- pkgs/development/ocaml-modules/h2/default.nix | 2 +- pkgs/development/ocaml-modules/httpaf/default.nix | 4 ++-- pkgs/development/ocaml-modules/imagelib/default.nix | 4 ++-- pkgs/development/ocaml-modules/logs/default.nix | 6 ++++-- pkgs/development/ocaml-modules/luv/default.nix | 4 ++-- pkgs/development/ocaml-modules/ppx_blob/default.nix | 2 +- pkgs/development/ocaml-modules/rpclib/default.nix | 4 ++-- pkgs/development/ocaml-modules/ssl/default.nix | 2 +- pkgs/development/ocaml-modules/terminal/default.nix | 2 +- pkgs/development/ocaml-modules/terminal_size/default.nix | 4 ++-- pkgs/development/ocaml-modules/uecc/default.nix | 4 ++-- pkgs/development/ocaml-modules/yuscii/default.nix | 5 ++++- 32 files changed, 60 insertions(+), 56 deletions(-) diff --git a/pkgs/development/ocaml-modules/angstrom/default.nix b/pkgs/development/ocaml-modules/angstrom/default.nix index 749a043e739..45db2bb9981 100644 --- a/pkgs/development/ocaml-modules/angstrom/default.nix +++ b/pkgs/development/ocaml-modules/angstrom/default.nix @@ -17,7 +17,7 @@ buildDunePackage rec { checkInputs = [ alcotest ppx_let ]; buildInputs = [ ocaml-syntax-shims ]; propagatedBuildInputs = [ bigstringaf result ]; - doCheck = lib.versionAtLeast ocaml.version "4.05"; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = { homepage = "https://github.com/inhabitedtype/angstrom"; diff --git a/pkgs/development/ocaml-modules/base64/default.nix b/pkgs/development/ocaml-modules/base64/default.nix index efb7f41b95d..7310bb968ff 100644 --- a/pkgs/development/ocaml-modules/base64/default.nix +++ b/pkgs/development/ocaml-modules/base64/default.nix @@ -14,7 +14,7 @@ buildDunePackage rec { }; # otherwise fmt breaks evaluation - doCheck = lib.versionAtLeast ocaml.version "4.05"; + doCheck = lib.versionAtLeast ocaml.version "4.08"; checkInputs = [ alcotest bos rresult ]; meta = { diff --git a/pkgs/development/ocaml-modules/bigarray-overlap/default.nix b/pkgs/development/ocaml-modules/bigarray-overlap/default.nix index a5f5ae33ede..c702faee8f8 100644 --- a/pkgs/development/ocaml-modules/bigarray-overlap/default.nix +++ b/pkgs/development/ocaml-modules/bigarray-overlap/default.nix @@ -1,4 +1,4 @@ -{ lib, buildDunePackage, fetchurl +{ lib, buildDunePackage, ocaml, fetchurl , bigarray-compat, alcotest, astring, fpath, bos, findlib, pkg-config }: @@ -20,7 +20,7 @@ buildDunePackage rec { nativeBuildInputs = [ findlib pkg-config ]; checkInputs = [ alcotest astring fpath bos ]; - doCheck = true; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = with lib; { homepage = "https://github.com/dinosaure/overlap"; diff --git a/pkgs/development/ocaml-modules/bigstringaf/default.nix b/pkgs/development/ocaml-modules/bigstringaf/default.nix index e8d36526d22..de7ca055613 100644 --- a/pkgs/development/ocaml-modules/bigstringaf/default.nix +++ b/pkgs/development/ocaml-modules/bigstringaf/default.nix @@ -21,7 +21,7 @@ buildDunePackage rec { nativeBuildInputs = [ pkg-config ]; checkInputs = [ alcotest ]; propagatedBuildInputs = [ bigarray-compat ]; - doCheck = lib.versionAtLeast ocaml.version "4.05"; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = { description = "Bigstring intrinsics and fast blits based on memcpy/memmove"; diff --git a/pkgs/development/ocaml-modules/callipyge/default.nix b/pkgs/development/ocaml-modules/callipyge/default.nix index a9dfb80f2a1..2004f8868ca 100644 --- a/pkgs/development/ocaml-modules/callipyge/default.nix +++ b/pkgs/development/ocaml-modules/callipyge/default.nix @@ -23,8 +23,8 @@ buildDunePackage rec { propagatedBuildInputs = [ fmt eqaf ]; - # alcotest isn't available for OCaml < 4.05 due to fmt - doCheck = lib.versionAtLeast ocaml.version "4.05"; + # alcotest isn't available for OCaml < 4.08 due to fmt + doCheck = lib.versionAtLeast ocaml.version "4.08"; checkInputs = [ alcotest ]; meta = { diff --git a/pkgs/development/ocaml-modules/caqti/default.nix b/pkgs/development/ocaml-modules/caqti/default.nix index a4ac9dadad1..510437f1c3b 100644 --- a/pkgs/development/ocaml-modules/caqti/default.nix +++ b/pkgs/development/ocaml-modules/caqti/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitHub, buildDunePackage +{ lib, fetchFromGitHub, buildDunePackage, ocaml , cppo, logs, ptime, uri, bigstringaf , re, cmdliner, alcotest }: @@ -20,7 +20,7 @@ buildDunePackage rec { propagatedBuildInputs = [ logs ptime uri bigstringaf ]; checkInputs = [ re cmdliner alcotest ]; - doCheck = true; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = { description = "Unified interface to relational database libraries"; diff --git a/pkgs/development/ocaml-modules/checkseum/default.nix b/pkgs/development/ocaml-modules/checkseum/default.nix index 13d9f2829af..e3a455e4a2d 100644 --- a/pkgs/development/ocaml-modules/checkseum/default.nix +++ b/pkgs/development/ocaml-modules/checkseum/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchurl, buildDunePackage, dune-configurator, pkg-config +{ lib, fetchurl, buildDunePackage, ocaml, dune-configurator, pkg-config , bigarray-compat, optint , fmt, rresult, bos, fpath, astring, alcotest , withFreestanding ? false @@ -36,7 +36,7 @@ buildDunePackage rec { rresult ]; - doCheck = true; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = { description = "ADLER-32 and CRC32C Cyclic Redundancy Check"; diff --git a/pkgs/development/ocaml-modules/cow/default.nix b/pkgs/development/ocaml-modules/cow/default.nix index 13ee99804d8..7a1afda0745 100644 --- a/pkgs/development/ocaml-modules/cow/default.nix +++ b/pkgs/development/ocaml-modules/cow/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchurl, buildDunePackage, alcotest +{ lib, fetchurl, buildDunePackage, ocaml, alcotest , uri, xmlm, omd, ezjsonm }: buildDunePackage rec { @@ -15,7 +15,7 @@ buildDunePackage rec { propagatedBuildInputs = [ xmlm uri ezjsonm omd ]; checkInputs = [ alcotest ]; - doCheck = true; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = with lib; { description = "Caml on the Web"; diff --git a/pkgs/development/ocaml-modules/cstruct/default.nix b/pkgs/development/ocaml-modules/cstruct/default.nix index 70f49ab1470..a4d963af652 100644 --- a/pkgs/development/ocaml-modules/cstruct/default.nix +++ b/pkgs/development/ocaml-modules/cstruct/default.nix @@ -15,8 +15,8 @@ buildDunePackage rec { propagatedBuildInputs = [ bigarray-compat ]; - # alcotest isn't available for OCaml < 4.05 due to fmt - doCheck = lib.versionAtLeast ocaml.version "4.05"; + # alcotest isn't available for OCaml < 4.08 due to fmt + doCheck = lib.versionAtLeast ocaml.version "4.08"; checkInputs = [ alcotest ]; meta = { diff --git a/pkgs/development/ocaml-modules/cstruct/sexp.nix b/pkgs/development/ocaml-modules/cstruct/sexp.nix index 69972ad3403..a9fe7091a1e 100644 --- a/pkgs/development/ocaml-modules/cstruct/sexp.nix +++ b/pkgs/development/ocaml-modules/cstruct/sexp.nix @@ -10,8 +10,8 @@ buildDunePackage rec { minimumOCamlVersion = "4.03"; - # alcotest is only available on OCaml >= 4.05 due to fmt - doCheck = lib.versionAtLeast ocaml.version "4.05"; + # alcotest is only available on OCaml >= 4.08 due to fmt + doCheck = lib.versionAtLeast ocaml.version "4.08"; checkInputs = [ alcotest ]; propagatedBuildInputs = [ cstruct sexplib ]; diff --git a/pkgs/development/ocaml-modules/decompress/default.nix b/pkgs/development/ocaml-modules/decompress/default.nix index f329a0ff013..4b5d2e0208f 100644 --- a/pkgs/development/ocaml-modules/decompress/default.nix +++ b/pkgs/development/ocaml-modules/decompress/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchurl, buildDunePackage +{ lib, fetchurl, buildDunePackage, ocaml , checkseum, bigarray-compat, optint, cmdliner , bigstringaf, alcotest, camlzip, base64, ctypes, fmt }: @@ -19,7 +19,7 @@ buildDunePackage rec { buildInputs = [ cmdliner ]; propagatedBuildInputs = [ optint bigarray-compat checkseum ]; checkInputs = [ alcotest bigstringaf ctypes fmt camlzip base64 ]; - doCheck = true; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = { description = "Pure OCaml implementation of Zlib"; diff --git a/pkgs/development/ocaml-modules/dispatch/default.nix b/pkgs/development/ocaml-modules/dispatch/default.nix index 65baa3dc498..587f5a792dc 100644 --- a/pkgs/development/ocaml-modules/dispatch/default.nix +++ b/pkgs/development/ocaml-modules/dispatch/default.nix @@ -17,7 +17,7 @@ buildDunePackage rec { checkInputs = [ alcotest ]; - doCheck = lib.versionAtLeast ocaml.version "4.05"; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = { inherit (src.meta) homepage; diff --git a/pkgs/development/ocaml-modules/domain-name/default.nix b/pkgs/development/ocaml-modules/domain-name/default.nix index 57a1d67ac2e..afbfbb66391 100644 --- a/pkgs/development/ocaml-modules/domain-name/default.nix +++ b/pkgs/development/ocaml-modules/domain-name/default.nix @@ -15,7 +15,7 @@ buildDunePackage rec { checkInputs = [ alcotest ]; - doCheck = lib.versionAtLeast ocaml.version "4.05"; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = { homepage = "https://github.com/hannesm/domain-name"; diff --git a/pkgs/development/ocaml-modules/duration/default.nix b/pkgs/development/ocaml-modules/duration/default.nix index ccddecf2898..1a1f9b07769 100644 --- a/pkgs/development/ocaml-modules/duration/default.nix +++ b/pkgs/development/ocaml-modules/duration/default.nix @@ -11,7 +11,7 @@ buildDunePackage rec { sha256 = "sha256-rRT7daWm9z//fvFyEXiSXuVVzw8jsj46sykYS8DBzmk="; }; - doCheck = lib.versionAtLeast ocaml.version "4.05"; + doCheck = lib.versionAtLeast ocaml.version "4.08"; checkInputs = [ alcotest ]; meta = { diff --git a/pkgs/development/ocaml-modules/emile/default.nix b/pkgs/development/ocaml-modules/emile/default.nix index d296e3de967..e2572ba6ae8 100644 --- a/pkgs/development/ocaml-modules/emile/default.nix +++ b/pkgs/development/ocaml-modules/emile/default.nix @@ -25,9 +25,9 @@ buildDunePackage rec { ]; # technically emile is available for ocaml >= 4.03, but alcotest - # and angstrom (fmt) are only available for >= 4.05. Disabling - # tests for < 4.05 at least improves the error message - doCheck = lib.versionAtLeast ocaml.version "4.05"; + # and angstrom (fmt) are only available for >= 4.08. Disabling + # tests for < 4.08 at least improves the error message + doCheck = lib.versionAtLeast ocaml.version "4.08"; checkInputs = [ alcotest ]; meta = with lib; { diff --git a/pkgs/development/ocaml-modules/faraday/default.nix b/pkgs/development/ocaml-modules/faraday/default.nix index 92a46694f86..8b4237ed4ed 100644 --- a/pkgs/development/ocaml-modules/faraday/default.nix +++ b/pkgs/development/ocaml-modules/faraday/default.nix @@ -17,7 +17,7 @@ buildDunePackage rec { checkInputs = [ alcotest ]; propagatedBuildInputs = [ bigstringaf ]; - doCheck = lib.versionAtLeast ocaml.version "4.05"; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = { description = "Serialization library built for speed and memory efficiency"; diff --git a/pkgs/development/ocaml-modules/ff/default.nix b/pkgs/development/ocaml-modules/ff/default.nix index 2a51b377e88..80ea140a201 100644 --- a/pkgs/development/ocaml-modules/ff/default.nix +++ b/pkgs/development/ocaml-modules/ff/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitLab, buildDunePackage, zarith, alcotest }: +{ lib, fetchFromGitLab, buildDunePackage, ocaml, zarith, alcotest }: buildDunePackage rec { pname = "ff"; @@ -21,7 +21,7 @@ buildDunePackage rec { alcotest ]; - doCheck = true; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = { homepage = "https://gitlab.com/dannywillems/ocaml-ff"; diff --git a/pkgs/development/ocaml-modules/fmt/default.nix b/pkgs/development/ocaml-modules/fmt/default.nix index bd562981652..b82df99d2df 100644 --- a/pkgs/development/ocaml-modules/fmt/default.nix +++ b/pkgs/development/ocaml-modules/fmt/default.nix @@ -1,21 +1,20 @@ -{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, cmdliner, seq, stdlib-shims }: +{ lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, cmdliner }: -if lib.versionOlder ocaml.version "4.05" +if lib.versionOlder ocaml.version "4.08" then throw "fmt is not available for OCaml ${ocaml.version}" else stdenv.mkDerivation rec { - version = "0.8.9"; + version = "0.9.0"; pname = "ocaml${ocaml.version}-fmt"; src = fetchurl { url = "https://erratique.ch/software/fmt/releases/fmt-${version}.tbz"; - sha256 = "0gkkkj4x678vxdda4xaw2dd44qjacavsvn5nx8gydfwah6pjbkxk"; + sha256 = "sha256-8fsggFoi3XWhN9cnBKNw53ic9r32OUjmgX0cImwUEmE="; }; nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ]; buildInputs = [ cmdliner topkg ]; - propagatedBuildInputs = [ seq stdlib-shims ]; strictDeps = true; diff --git a/pkgs/development/ocaml-modules/gmap/default.nix b/pkgs/development/ocaml-modules/gmap/default.nix index 407919f91bc..6c412ecfa45 100644 --- a/pkgs/development/ocaml-modules/gmap/default.nix +++ b/pkgs/development/ocaml-modules/gmap/default.nix @@ -15,7 +15,7 @@ buildDunePackage rec { checkInputs = [ alcotest ]; - doCheck = lib.versionAtLeast ocaml.version "4.05"; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = { description = "Heterogenous maps over a GADT"; diff --git a/pkgs/development/ocaml-modules/graphql/parser.nix b/pkgs/development/ocaml-modules/graphql/parser.nix index feea74f6780..ce953a68b3c 100644 --- a/pkgs/development/ocaml-modules/graphql/parser.nix +++ b/pkgs/development/ocaml-modules/graphql/parser.nix @@ -1,10 +1,10 @@ -{ lib, buildDunePackage, ocaml, fetchurl, alcotest, fmt, menhir, re }: +{ lib, buildDunePackage, fetchurl, alcotest, fmt, menhir, re }: buildDunePackage rec { pname = "graphql_parser"; version = "0.14.0"; - minimalOCamlVersion = "4.05"; + minimalOCamlVersion = "4.08"; src = fetchurl { url = "https://github.com/andreas/ocaml-graphql-server/releases/download/${version}/graphql-${version}.tbz"; @@ -16,7 +16,7 @@ buildDunePackage rec { checkInputs = [ alcotest ]; - doCheck = lib.versionAtLeast ocaml.version "4.08"; + doCheck = true; meta = { homepage = "https://github.com/andreas/ocaml-graphql-server"; diff --git a/pkgs/development/ocaml-modules/h2/default.nix b/pkgs/development/ocaml-modules/h2/default.nix index dd96e0ecc44..4973de7c183 100644 --- a/pkgs/development/ocaml-modules/h2/default.nix +++ b/pkgs/development/ocaml-modules/h2/default.nix @@ -43,7 +43,7 @@ buildDunePackage rec { ]; # Tests fail with 4.06 - doCheck = lib.versionAtLeast ocaml.version "4.07"; + doCheck = lib.versionAtLeast ocaml.version "4.08"; preCheck = '' ln -s "${http2-frame-test-case}" lib_test/http2-frame-test-case ''; diff --git a/pkgs/development/ocaml-modules/httpaf/default.nix b/pkgs/development/ocaml-modules/httpaf/default.nix index 94cee795b93..508b2e4b7f7 100644 --- a/pkgs/development/ocaml-modules/httpaf/default.nix +++ b/pkgs/development/ocaml-modules/httpaf/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitHub, fetchpatch, buildDunePackage +{ lib, fetchFromGitHub, fetchpatch, buildDunePackage, ocaml , angstrom, faraday, alcotest }: @@ -17,7 +17,7 @@ buildDunePackage rec { checkInputs = [ alcotest ]; propagatedBuildInputs = [ angstrom faraday ]; - doCheck = true; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = { description = "A high-performance, memory-efficient, and scalable web server for OCaml"; diff --git a/pkgs/development/ocaml-modules/imagelib/default.nix b/pkgs/development/ocaml-modules/imagelib/default.nix index a2debdaf492..101a0e28b94 100644 --- a/pkgs/development/ocaml-modules/imagelib/default.nix +++ b/pkgs/development/ocaml-modules/imagelib/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchurl, buildDunePackage +{ lib, fetchurl, buildDunePackage, ocaml , decompress, stdlib-shims, alcotest }: @@ -16,7 +16,7 @@ buildDunePackage rec { propagatedBuildInputs = [ decompress stdlib-shims ]; - doCheck = true; + doCheck = lib.versionAtLeast ocaml.version "4.08"; checkInputs = [ alcotest ]; meta = { diff --git a/pkgs/development/ocaml-modules/logs/default.nix b/pkgs/development/ocaml-modules/logs/default.nix index adc7f255b19..0b8ffed91e4 100644 --- a/pkgs/development/ocaml-modules/logs/default.nix +++ b/pkgs/development/ocaml-modules/logs/default.nix @@ -1,5 +1,6 @@ { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild , topkg, result, lwt, cmdliner, fmt +, fmtSupport ? lib.versionAtLeast ocaml.version "4.08" , js_of_ocaml , jsooSupport ? true }: @@ -22,13 +23,14 @@ stdenv.mkDerivation rec { }; nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ]; - buildInputs = [ fmt cmdliner lwt topkg ] + buildInputs = [ cmdliner lwt topkg ] + ++ lib.optional fmtSupport fmt ++ lib.optional jsooSupport js_of_ocaml; propagatedBuildInputs = [ result ]; strictDeps = true; - buildPhase = "${topkg.run} build --with-js_of_ocaml ${lib.boolToString jsooSupport}"; + buildPhase = "${topkg.run} build --with-js_of_ocaml ${lib.boolToString jsooSupport} --with-fmt ${lib.boolToString fmtSupport}"; inherit (topkg) installPhase; diff --git a/pkgs/development/ocaml-modules/luv/default.nix b/pkgs/development/ocaml-modules/luv/default.nix index 4b11e8df985..da7f9ba1808 100644 --- a/pkgs/development/ocaml-modules/luv/default.nix +++ b/pkgs/development/ocaml-modules/luv/default.nix @@ -1,4 +1,4 @@ -{ lib, buildDunePackage, fetchurl +{ lib, buildDunePackage, ocaml, fetchurl , ctypes, result , alcotest , file @@ -23,7 +23,7 @@ buildDunePackage rec { nativeBuildInputs = [ file ]; propagatedBuildInputs = [ ctypes result ]; checkInputs = [ alcotest ]; - doCheck = true; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = with lib; { homepage = "https://github.com/aantron/luv"; diff --git a/pkgs/development/ocaml-modules/ppx_blob/default.nix b/pkgs/development/ocaml-modules/ppx_blob/default.nix index ac96e56d04e..6248e4e6a94 100644 --- a/pkgs/development/ocaml-modules/ppx_blob/default.nix +++ b/pkgs/development/ocaml-modules/ppx_blob/default.nix @@ -13,7 +13,7 @@ buildDunePackage rec { checkInputs = [ alcotest ]; propagatedBuildInputs = [ ppxlib ]; - doCheck = lib.versionAtLeast ocaml.version "4.05"; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = with lib; { homepage = "https://github.com/johnwhitington/ppx_blob"; diff --git a/pkgs/development/ocaml-modules/rpclib/default.nix b/pkgs/development/ocaml-modules/rpclib/default.nix index 311c4caaada..73d899eafa9 100644 --- a/pkgs/development/ocaml-modules/rpclib/default.nix +++ b/pkgs/development/ocaml-modules/rpclib/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchurl, buildDunePackage +{ lib, fetchurl, buildDunePackage, ocaml , alcotest , base64, cmdliner, rresult, xmlm, yojson }: @@ -18,7 +18,7 @@ buildDunePackage rec { propagatedBuildInputs = [ base64 rresult xmlm ]; checkInputs = [ alcotest ]; - doCheck = true; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = with lib; { homepage = "https://github.com/mirage/ocaml-rpc"; diff --git a/pkgs/development/ocaml-modules/ssl/default.nix b/pkgs/development/ocaml-modules/ssl/default.nix index 6791c7d1272..ef82749367b 100644 --- a/pkgs/development/ocaml-modules/ssl/default.nix +++ b/pkgs/development/ocaml-modules/ssl/default.nix @@ -23,7 +23,7 @@ buildDunePackage rec { buildInputs = [ dune-configurator ]; propagatedBuildInputs = [ openssl ]; - doCheck = lib.versionAtLeast ocaml.version "4.06"; + doCheck = lib.versionAtLeast ocaml.version "4.08"; checkInputs = [ alcotest ]; preCheck = '' mkdir -p _build/default/tests/ diff --git a/pkgs/development/ocaml-modules/terminal/default.nix b/pkgs/development/ocaml-modules/terminal/default.nix index 1fcdc1a5cba..e97fb223e41 100644 --- a/pkgs/development/ocaml-modules/terminal/default.nix +++ b/pkgs/development/ocaml-modules/terminal/default.nix @@ -17,7 +17,7 @@ buildDunePackage rec { propagatedBuildInputs = [ stdlib-shims uutf uucp ]; - doCheck = lib.versionAtLeast ocaml.version "4.05"; + doCheck = lib.versionAtLeast ocaml.version "4.08"; checkInputs = [ alcotest fmt ]; meta = with lib; { diff --git a/pkgs/development/ocaml-modules/terminal_size/default.nix b/pkgs/development/ocaml-modules/terminal_size/default.nix index 9036fc55bef..fa6bd003eae 100644 --- a/pkgs/development/ocaml-modules/terminal_size/default.nix +++ b/pkgs/development/ocaml-modules/terminal_size/default.nix @@ -1,4 +1,4 @@ -{ lib, buildDunePackage, fetchurl, alcotest }: +{ lib, buildDunePackage, ocaml, fetchurl, alcotest }: buildDunePackage rec { pname = "terminal_size"; @@ -12,7 +12,7 @@ buildDunePackage rec { }; checkInputs = [ alcotest ]; - doCheck = true; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = with lib; { description = "Get the dimensions of the terminal"; diff --git a/pkgs/development/ocaml-modules/uecc/default.nix b/pkgs/development/ocaml-modules/uecc/default.nix index f67980db2ff..5e24f955b17 100644 --- a/pkgs/development/ocaml-modules/uecc/default.nix +++ b/pkgs/development/ocaml-modules/uecc/default.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitLab, buildDunePackage, bigstring, alcotest, cstruct, hex }: +{ lib, fetchFromGitLab, buildDunePackage, ocaml, bigstring, alcotest, cstruct, hex }: buildDunePackage rec { pname = "uecc"; @@ -23,7 +23,7 @@ buildDunePackage rec { hex ]; - doCheck = true; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = { description = "Bindings for ECDH and ECDSA for 8-bit, 32-bit, and 64-bit processors"; diff --git a/pkgs/development/ocaml-modules/yuscii/default.nix b/pkgs/development/ocaml-modules/yuscii/default.nix index 9d7b5d3c4d6..02de0220fc1 100644 --- a/pkgs/development/ocaml-modules/yuscii/default.nix +++ b/pkgs/development/ocaml-modules/yuscii/default.nix @@ -1,5 +1,6 @@ { alcotest , buildDunePackage +, ocaml , fetchzip , gcc , fmt @@ -11,6 +12,8 @@ buildDunePackage rec { pname = "yuscii"; version = "0.3.0"; + minimalOCamlVersion = "4.03"; + src = fetchzip { url = "https://github.com/mirage/yuscii/releases/download/v${version}/yuscii-v${version}.tbz"; sha256 = "0idywlkw0fbakrxv65swnr5bj7f2vns9kpay7q03gzlv82p670hy"; @@ -24,7 +27,7 @@ buildDunePackage rec { fmt uutf ]; - doCheck = true; + doCheck = lib.versionAtLeast ocaml.version "4.08"; meta = { description = "A simple mapper between UTF-7 to Unicode according RFC2152";