lol

ocamlPackages.fmt: 0.8.9 → 0.9.0

authored by

Vincent Laporte and committed by
Vincent Laporte
0f4f35c7 30942c90

+60 -56
+1 -1
pkgs/development/ocaml-modules/angstrom/default.nix
··· 17 17 checkInputs = [ alcotest ppx_let ]; 18 18 buildInputs = [ ocaml-syntax-shims ]; 19 19 propagatedBuildInputs = [ bigstringaf result ]; 20 - doCheck = lib.versionAtLeast ocaml.version "4.05"; 20 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 21 21 22 22 meta = { 23 23 homepage = "https://github.com/inhabitedtype/angstrom";
+1 -1
pkgs/development/ocaml-modules/base64/default.nix
··· 14 14 }; 15 15 16 16 # otherwise fmt breaks evaluation 17 - doCheck = lib.versionAtLeast ocaml.version "4.05"; 17 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 18 18 checkInputs = [ alcotest bos rresult ]; 19 19 20 20 meta = {
+2 -2
pkgs/development/ocaml-modules/bigarray-overlap/default.nix
··· 1 - { lib, buildDunePackage, fetchurl 1 + { lib, buildDunePackage, ocaml, fetchurl 2 2 , bigarray-compat, alcotest, astring, fpath, bos, findlib, pkg-config 3 3 }: 4 4 ··· 20 20 21 21 nativeBuildInputs = [ findlib pkg-config ]; 22 22 checkInputs = [ alcotest astring fpath bos ]; 23 - doCheck = true; 23 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 24 24 25 25 meta = with lib; { 26 26 homepage = "https://github.com/dinosaure/overlap";
+1 -1
pkgs/development/ocaml-modules/bigstringaf/default.nix
··· 21 21 nativeBuildInputs = [ pkg-config ]; 22 22 checkInputs = [ alcotest ]; 23 23 propagatedBuildInputs = [ bigarray-compat ]; 24 - doCheck = lib.versionAtLeast ocaml.version "4.05"; 24 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 25 25 26 26 meta = { 27 27 description = "Bigstring intrinsics and fast blits based on memcpy/memmove";
+2 -2
pkgs/development/ocaml-modules/callipyge/default.nix
··· 23 23 24 24 propagatedBuildInputs = [ fmt eqaf ]; 25 25 26 - # alcotest isn't available for OCaml < 4.05 due to fmt 27 - doCheck = lib.versionAtLeast ocaml.version "4.05"; 26 + # alcotest isn't available for OCaml < 4.08 due to fmt 27 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 28 28 checkInputs = [ alcotest ]; 29 29 30 30 meta = {
+2 -2
pkgs/development/ocaml-modules/caqti/default.nix
··· 1 - { lib, fetchFromGitHub, buildDunePackage 1 + { lib, fetchFromGitHub, buildDunePackage, ocaml 2 2 , cppo, logs, ptime, uri, bigstringaf 3 3 , re, cmdliner, alcotest }: 4 4 ··· 20 20 propagatedBuildInputs = [ logs ptime uri bigstringaf ]; 21 21 checkInputs = [ re cmdliner alcotest ]; 22 22 23 - doCheck = true; 23 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 24 24 25 25 meta = { 26 26 description = "Unified interface to relational database libraries";
+2 -2
pkgs/development/ocaml-modules/checkseum/default.nix
··· 1 - { lib, fetchurl, buildDunePackage, dune-configurator, pkg-config 1 + { lib, fetchurl, buildDunePackage, ocaml, dune-configurator, pkg-config 2 2 , bigarray-compat, optint 3 3 , fmt, rresult, bos, fpath, astring, alcotest 4 4 , withFreestanding ? false ··· 36 36 rresult 37 37 ]; 38 38 39 - doCheck = true; 39 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 40 40 41 41 meta = { 42 42 description = "ADLER-32 and CRC32C Cyclic Redundancy Check";
+2 -2
pkgs/development/ocaml-modules/cow/default.nix
··· 1 - { lib, fetchurl, buildDunePackage, alcotest 1 + { lib, fetchurl, buildDunePackage, ocaml, alcotest 2 2 , uri, xmlm, omd, ezjsonm }: 3 3 4 4 buildDunePackage rec { ··· 15 15 16 16 propagatedBuildInputs = [ xmlm uri ezjsonm omd ]; 17 17 checkInputs = [ alcotest ]; 18 - doCheck = true; 18 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 19 19 20 20 meta = with lib; { 21 21 description = "Caml on the Web";
+2 -2
pkgs/development/ocaml-modules/cstruct/default.nix
··· 15 15 16 16 propagatedBuildInputs = [ bigarray-compat ]; 17 17 18 - # alcotest isn't available for OCaml < 4.05 due to fmt 19 - doCheck = lib.versionAtLeast ocaml.version "4.05"; 18 + # alcotest isn't available for OCaml < 4.08 due to fmt 19 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 20 20 checkInputs = [ alcotest ]; 21 21 22 22 meta = {
+2 -2
pkgs/development/ocaml-modules/cstruct/sexp.nix
··· 10 10 11 11 minimumOCamlVersion = "4.03"; 12 12 13 - # alcotest is only available on OCaml >= 4.05 due to fmt 14 - doCheck = lib.versionAtLeast ocaml.version "4.05"; 13 + # alcotest is only available on OCaml >= 4.08 due to fmt 14 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 15 15 checkInputs = [ alcotest ]; 16 16 17 17 propagatedBuildInputs = [ cstruct sexplib ];
+2 -2
pkgs/development/ocaml-modules/decompress/default.nix
··· 1 - { lib, fetchurl, buildDunePackage 1 + { lib, fetchurl, buildDunePackage, ocaml 2 2 , checkseum, bigarray-compat, optint, cmdliner 3 3 , bigstringaf, alcotest, camlzip, base64, ctypes, fmt 4 4 }: ··· 19 19 buildInputs = [ cmdliner ]; 20 20 propagatedBuildInputs = [ optint bigarray-compat checkseum ]; 21 21 checkInputs = [ alcotest bigstringaf ctypes fmt camlzip base64 ]; 22 - doCheck = true; 22 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 23 23 24 24 meta = { 25 25 description = "Pure OCaml implementation of Zlib";
+1 -1
pkgs/development/ocaml-modules/dispatch/default.nix
··· 17 17 18 18 checkInputs = [ alcotest ]; 19 19 20 - doCheck = lib.versionAtLeast ocaml.version "4.05"; 20 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 21 21 22 22 meta = { 23 23 inherit (src.meta) homepage;
+1 -1
pkgs/development/ocaml-modules/domain-name/default.nix
··· 15 15 16 16 checkInputs = [ alcotest ]; 17 17 18 - doCheck = lib.versionAtLeast ocaml.version "4.05"; 18 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 19 19 20 20 meta = { 21 21 homepage = "https://github.com/hannesm/domain-name";
+1 -1
pkgs/development/ocaml-modules/duration/default.nix
··· 11 11 sha256 = "sha256-rRT7daWm9z//fvFyEXiSXuVVzw8jsj46sykYS8DBzmk="; 12 12 }; 13 13 14 - doCheck = lib.versionAtLeast ocaml.version "4.05"; 14 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 15 15 checkInputs = [ alcotest ]; 16 16 17 17 meta = {
+3 -3
pkgs/development/ocaml-modules/emile/default.nix
··· 25 25 ]; 26 26 27 27 # technically emile is available for ocaml >= 4.03, but alcotest 28 - # and angstrom (fmt) are only available for >= 4.05. Disabling 29 - # tests for < 4.05 at least improves the error message 30 - doCheck = lib.versionAtLeast ocaml.version "4.05"; 28 + # and angstrom (fmt) are only available for >= 4.08. Disabling 29 + # tests for < 4.08 at least improves the error message 30 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 31 31 checkInputs = [ alcotest ]; 32 32 33 33 meta = with lib; {
+1 -1
pkgs/development/ocaml-modules/faraday/default.nix
··· 17 17 18 18 checkInputs = [ alcotest ]; 19 19 propagatedBuildInputs = [ bigstringaf ]; 20 - doCheck = lib.versionAtLeast ocaml.version "4.05"; 20 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 21 21 22 22 meta = { 23 23 description = "Serialization library built for speed and memory efficiency";
+2 -2
pkgs/development/ocaml-modules/ff/default.nix
··· 1 - { lib, fetchFromGitLab, buildDunePackage, zarith, alcotest }: 1 + { lib, fetchFromGitLab, buildDunePackage, ocaml, zarith, alcotest }: 2 2 3 3 buildDunePackage rec { 4 4 pname = "ff"; ··· 21 21 alcotest 22 22 ]; 23 23 24 - doCheck = true; 24 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 25 25 26 26 meta = { 27 27 homepage = "https://gitlab.com/dannywillems/ocaml-ff";
+4 -5
pkgs/development/ocaml-modules/fmt/default.nix
··· 1 - { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, cmdliner, seq, stdlib-shims }: 1 + { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild, topkg, cmdliner }: 2 2 3 - if lib.versionOlder ocaml.version "4.05" 3 + if lib.versionOlder ocaml.version "4.08" 4 4 then throw "fmt is not available for OCaml ${ocaml.version}" 5 5 else 6 6 7 7 stdenv.mkDerivation rec { 8 - version = "0.8.9"; 8 + version = "0.9.0"; 9 9 pname = "ocaml${ocaml.version}-fmt"; 10 10 11 11 src = fetchurl { 12 12 url = "https://erratique.ch/software/fmt/releases/fmt-${version}.tbz"; 13 - sha256 = "0gkkkj4x678vxdda4xaw2dd44qjacavsvn5nx8gydfwah6pjbkxk"; 13 + sha256 = "sha256-8fsggFoi3XWhN9cnBKNw53ic9r32OUjmgX0cImwUEmE="; 14 14 }; 15 15 16 16 nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ]; 17 17 buildInputs = [ cmdliner topkg ]; 18 - propagatedBuildInputs = [ seq stdlib-shims ]; 19 18 20 19 strictDeps = true; 21 20
+1 -1
pkgs/development/ocaml-modules/gmap/default.nix
··· 15 15 16 16 checkInputs = [ alcotest ]; 17 17 18 - doCheck = lib.versionAtLeast ocaml.version "4.05"; 18 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 19 19 20 20 meta = { 21 21 description = "Heterogenous maps over a GADT";
+3 -3
pkgs/development/ocaml-modules/graphql/parser.nix
··· 1 - { lib, buildDunePackage, ocaml, fetchurl, alcotest, fmt, menhir, re }: 1 + { lib, buildDunePackage, fetchurl, alcotest, fmt, menhir, re }: 2 2 3 3 buildDunePackage rec { 4 4 pname = "graphql_parser"; 5 5 version = "0.14.0"; 6 6 7 - minimalOCamlVersion = "4.05"; 7 + minimalOCamlVersion = "4.08"; 8 8 9 9 src = fetchurl { 10 10 url = "https://github.com/andreas/ocaml-graphql-server/releases/download/${version}/graphql-${version}.tbz"; ··· 16 16 17 17 checkInputs = [ alcotest ]; 18 18 19 - doCheck = lib.versionAtLeast ocaml.version "4.08"; 19 + doCheck = true; 20 20 21 21 meta = { 22 22 homepage = "https://github.com/andreas/ocaml-graphql-server";
+1 -1
pkgs/development/ocaml-modules/h2/default.nix
··· 43 43 ]; 44 44 45 45 # Tests fail with 4.06 46 - doCheck = lib.versionAtLeast ocaml.version "4.07"; 46 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 47 47 preCheck = '' 48 48 ln -s "${http2-frame-test-case}" lib_test/http2-frame-test-case 49 49 '';
+2 -2
pkgs/development/ocaml-modules/httpaf/default.nix
··· 1 - { lib, fetchFromGitHub, fetchpatch, buildDunePackage 1 + { lib, fetchFromGitHub, fetchpatch, buildDunePackage, ocaml 2 2 , angstrom, faraday, alcotest 3 3 }: 4 4 ··· 17 17 18 18 checkInputs = [ alcotest ]; 19 19 propagatedBuildInputs = [ angstrom faraday ]; 20 - doCheck = true; 20 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 21 21 22 22 meta = { 23 23 description = "A high-performance, memory-efficient, and scalable web server for OCaml";
+2 -2
pkgs/development/ocaml-modules/imagelib/default.nix
··· 1 - { lib, fetchurl, buildDunePackage 1 + { lib, fetchurl, buildDunePackage, ocaml 2 2 , decompress, stdlib-shims, alcotest 3 3 }: 4 4 ··· 16 16 17 17 propagatedBuildInputs = [ decompress stdlib-shims ]; 18 18 19 - doCheck = true; 19 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 20 20 checkInputs = [ alcotest ]; 21 21 22 22 meta = {
+4 -2
pkgs/development/ocaml-modules/logs/default.nix
··· 1 1 { lib, stdenv, fetchurl, ocaml, findlib, ocamlbuild 2 2 , topkg, result, lwt, cmdliner, fmt 3 + , fmtSupport ? lib.versionAtLeast ocaml.version "4.08" 3 4 , js_of_ocaml 4 5 , jsooSupport ? true 5 6 }: ··· 22 23 }; 23 24 24 25 nativeBuildInputs = [ ocaml findlib ocamlbuild topkg ]; 25 - buildInputs = [ fmt cmdliner lwt topkg ] 26 + buildInputs = [ cmdliner lwt topkg ] 27 + ++ lib.optional fmtSupport fmt 26 28 ++ lib.optional jsooSupport js_of_ocaml; 27 29 propagatedBuildInputs = [ result ]; 28 30 29 31 strictDeps = true; 30 32 31 - buildPhase = "${topkg.run} build --with-js_of_ocaml ${lib.boolToString jsooSupport}"; 33 + buildPhase = "${topkg.run} build --with-js_of_ocaml ${lib.boolToString jsooSupport} --with-fmt ${lib.boolToString fmtSupport}"; 32 34 33 35 inherit (topkg) installPhase; 34 36
+2 -2
pkgs/development/ocaml-modules/luv/default.nix
··· 1 - { lib, buildDunePackage, fetchurl 1 + { lib, buildDunePackage, ocaml, fetchurl 2 2 , ctypes, result 3 3 , alcotest 4 4 , file ··· 23 23 nativeBuildInputs = [ file ]; 24 24 propagatedBuildInputs = [ ctypes result ]; 25 25 checkInputs = [ alcotest ]; 26 - doCheck = true; 26 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 27 27 28 28 meta = with lib; { 29 29 homepage = "https://github.com/aantron/luv";
+1 -1
pkgs/development/ocaml-modules/ppx_blob/default.nix
··· 13 13 14 14 checkInputs = [ alcotest ]; 15 15 propagatedBuildInputs = [ ppxlib ]; 16 - doCheck = lib.versionAtLeast ocaml.version "4.05"; 16 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 17 17 18 18 meta = with lib; { 19 19 homepage = "https://github.com/johnwhitington/ppx_blob";
+2 -2
pkgs/development/ocaml-modules/rpclib/default.nix
··· 1 - { lib, fetchurl, buildDunePackage 1 + { lib, fetchurl, buildDunePackage, ocaml 2 2 , alcotest 3 3 , base64, cmdliner, rresult, xmlm, yojson 4 4 }: ··· 18 18 propagatedBuildInputs = [ base64 rresult xmlm ]; 19 19 checkInputs = [ alcotest ]; 20 20 21 - doCheck = true; 21 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 22 22 23 23 meta = with lib; { 24 24 homepage = "https://github.com/mirage/ocaml-rpc";
+1 -1
pkgs/development/ocaml-modules/ssl/default.nix
··· 23 23 buildInputs = [ dune-configurator ]; 24 24 propagatedBuildInputs = [ openssl ]; 25 25 26 - doCheck = lib.versionAtLeast ocaml.version "4.06"; 26 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 27 27 checkInputs = [ alcotest ]; 28 28 preCheck = '' 29 29 mkdir -p _build/default/tests/
+1 -1
pkgs/development/ocaml-modules/terminal/default.nix
··· 17 17 18 18 propagatedBuildInputs = [ stdlib-shims uutf uucp ]; 19 19 20 - doCheck = lib.versionAtLeast ocaml.version "4.05"; 20 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 21 21 checkInputs = [ alcotest fmt ]; 22 22 23 23 meta = with lib; {
+2 -2
pkgs/development/ocaml-modules/terminal_size/default.nix
··· 1 - { lib, buildDunePackage, fetchurl, alcotest }: 1 + { lib, buildDunePackage, ocaml, fetchurl, alcotest }: 2 2 3 3 buildDunePackage rec { 4 4 pname = "terminal_size"; ··· 12 12 }; 13 13 14 14 checkInputs = [ alcotest ]; 15 - doCheck = true; 15 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 16 16 17 17 meta = with lib; { 18 18 description = "Get the dimensions of the terminal";
+2 -2
pkgs/development/ocaml-modules/uecc/default.nix
··· 1 - { lib, fetchFromGitLab, buildDunePackage, bigstring, alcotest, cstruct, hex }: 1 + { lib, fetchFromGitLab, buildDunePackage, ocaml, bigstring, alcotest, cstruct, hex }: 2 2 3 3 buildDunePackage rec { 4 4 pname = "uecc"; ··· 23 23 hex 24 24 ]; 25 25 26 - doCheck = true; 26 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 27 27 28 28 meta = { 29 29 description = "Bindings for ECDH and ECDSA for 8-bit, 32-bit, and 64-bit processors";
+4 -1
pkgs/development/ocaml-modules/yuscii/default.nix
··· 1 1 { alcotest 2 2 , buildDunePackage 3 + , ocaml 3 4 , fetchzip 4 5 , gcc 5 6 , fmt ··· 10 11 buildDunePackage rec { 11 12 pname = "yuscii"; 12 13 version = "0.3.0"; 14 + 15 + minimalOCamlVersion = "4.03"; 13 16 14 17 src = fetchzip { 15 18 url = "https://github.com/mirage/yuscii/releases/download/v${version}/yuscii-v${version}.tbz"; ··· 24 27 fmt 25 28 uutf 26 29 ]; 27 - doCheck = true; 30 + doCheck = lib.versionAtLeast ocaml.version "4.08"; 28 31 29 32 meta = { 30 33 description = "A simple mapper between UTF-7 to Unicode according RFC2152";