aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/iter/default.nix9
-rw-r--r--pkgs/development/ocaml-modules/mirage/runtime.nix4
-rw-r--r--pkgs/development/ocaml-modules/odate/default.nix29
-rw-r--r--pkgs/development/ocaml-modules/ppx_tools_versioned/default.nix4
-rw-r--r--pkgs/development/ocaml-modules/qcheck/alcotest.nix2
-rw-r--r--pkgs/development/ocaml-modules/qcheck/core.nix6
-rw-r--r--pkgs/development/ocaml-modules/qcheck/default.nix2
-rw-r--r--pkgs/development/ocaml-modules/qcheck/ounit.nix2
-rw-r--r--pkgs/development/ocaml-modules/qtest/default.nix2
-rw-r--r--pkgs/development/ocaml-modules/tls/default.nix4
-rw-r--r--pkgs/development/ocaml-modules/xtmpl/default.nix1
11 files changed, 52 insertions, 13 deletions
diff --git a/pkgs/development/ocaml-modules/iter/default.nix b/pkgs/development/ocaml-modules/iter/default.nix
index 66f3f26285ed..d7b3ff64d30f 100644
--- a/pkgs/development/ocaml-modules/iter/default.nix
+++ b/pkgs/development/ocaml-modules/iter/default.nix
@@ -1,9 +1,13 @@
-{ lib, fetchFromGitHub, buildDunePackage, ocaml, mdx, qtest, result }:
+{ lib, fetchFromGitHub, buildDunePackage, ocaml, dune-configurator
+, mdx, qtest, result
+}:
buildDunePackage rec {
pname = "iter";
version = "1.2.1";
+ useDune2 = true;
+
src = fetchFromGitHub {
owner = "c-cube";
repo = pname;
@@ -11,10 +15,11 @@ buildDunePackage rec {
sha256 = "0j2sg50byn0ppmf6l36ksip7zx1d3gv7sc4hbbxs2rmx39jr7vxh";
};
- buildInputs = lib.optionals doCheck [ mdx.bin qtest ];
+ buildInputs = [ dune-configurator ];
propagatedBuildInputs = [ result ];
doCheck = lib.versionAtLeast ocaml.version "4.07";
+ checkInputs = [ mdx.bin qtest ];
meta = {
homepage = "https://github.com/c-cube/sequence";
diff --git a/pkgs/development/ocaml-modules/mirage/runtime.nix b/pkgs/development/ocaml-modules/mirage/runtime.nix
index 700065ba8e0b..50121ad62802 100644
--- a/pkgs/development/ocaml-modules/mirage/runtime.nix
+++ b/pkgs/development/ocaml-modules/mirage/runtime.nix
@@ -3,7 +3,7 @@
buildDunePackage rec {
pname = "mirage-runtime";
- version = "3.10.0";
+ version = "3.10.1";
useDune2 = true;
@@ -11,7 +11,7 @@ buildDunePackage rec {
src = fetchurl {
url = "https://github.com/mirage/mirage/releases/download/v${version}/mirage-v${version}.tbz";
- sha256 = "01nq358bilsvvwrvyavc5gik1csjljn4rb3k8yx94gxvbj5vx4h2";
+ sha256 = "1glmsz2znhfkk4w6d6nsr7q5jqvivhmi8zwagzw2d8pah0c8bhm4";
};
propagatedBuildInputs = [ ipaddr functoria-runtime fmt logs ocaml_lwt ];
diff --git a/pkgs/development/ocaml-modules/odate/default.nix b/pkgs/development/ocaml-modules/odate/default.nix
new file mode 100644
index 000000000000..aed5e92765f8
--- /dev/null
+++ b/pkgs/development/ocaml-modules/odate/default.nix
@@ -0,0 +1,29 @@
+{ lib, buildDunePackage, fetchFromGitHub
+, menhir
+}:
+
+buildDunePackage rec {
+ pname = "odate";
+ version = "0.6";
+
+ useDune2 = true;
+
+ minimumOCamlVersion = "4.07";
+
+ src = fetchFromGitHub {
+ owner = "hhugo";
+ repo = pname;
+ rev = version;
+ sha256 = "1dk33lr0g2jnia2gqsm6nnc7nf256qgkm3v30w477gm6y2ppfm3h";
+ };
+
+ buildInputs = [ menhir ];
+
+ meta = {
+ description = "Date and duration in OCaml";
+ inherit (src.meta) homepage;
+ license = lib.licenses.mit;
+ maintainers = [ lib.maintainers.vbgl ];
+ };
+
+}
diff --git a/pkgs/development/ocaml-modules/ppx_tools_versioned/default.nix b/pkgs/development/ocaml-modules/ppx_tools_versioned/default.nix
index 7fd939e58ec2..958c088cd6a2 100644
--- a/pkgs/development/ocaml-modules/ppx_tools_versioned/default.nix
+++ b/pkgs/development/ocaml-modules/ppx_tools_versioned/default.nix
@@ -2,13 +2,13 @@
buildDunePackage rec {
pname = "ppx_tools_versioned";
- version = "5.3.0";
+ version = "5.4.0";
src = fetchFromGitHub {
owner = "ocaml-ppx";
repo = pname;
rev = version;
- sha256 = "0c735w9mq49dmvkdw9ahfwh0icsk2sbhnfwmdhpibj86phfm17yj";
+ sha256 = "07lnj4yzwvwyh5fhpp1dxrys4ddih15jhgqjn59pmgxinbnddi66";
};
propagatedBuildInputs = [ ocaml-migrate-parsetree ];
diff --git a/pkgs/development/ocaml-modules/qcheck/alcotest.nix b/pkgs/development/ocaml-modules/qcheck/alcotest.nix
index 4f1baec1e556..aebe6bd95a85 100644
--- a/pkgs/development/ocaml-modules/qcheck/alcotest.nix
+++ b/pkgs/development/ocaml-modules/qcheck/alcotest.nix
@@ -3,7 +3,7 @@
buildDunePackage {
pname = "qcheck-alcotest";
- inherit (qcheck-core) version src;
+ inherit (qcheck-core) version useDune2 src;
propagatedBuildInputs = [ qcheck-core alcotest ];
diff --git a/pkgs/development/ocaml-modules/qcheck/core.nix b/pkgs/development/ocaml-modules/qcheck/core.nix
index fa72a211ef45..03de70237a46 100644
--- a/pkgs/development/ocaml-modules/qcheck/core.nix
+++ b/pkgs/development/ocaml-modules/qcheck/core.nix
@@ -2,7 +2,9 @@
buildDunePackage rec {
pname = "qcheck-core";
- version = "0.15";
+ version = "0.16";
+
+ useDune2 = true;
minimumOCamlVersion = "4.03";
@@ -10,7 +12,7 @@ buildDunePackage rec {
owner = "c-cube";
repo = "qcheck";
rev = version;
- sha256 = "1ywaklqm1agvxvzv7pwl8v4zlwc3ykw6l251w43f0gy9cfwqmh3j";
+ sha256 = "1s5dpqj8zvd3wr2w3fp4wb6yc57snjpxzzfv9fb6l9qgigswwjdr";
};
meta = {
diff --git a/pkgs/development/ocaml-modules/qcheck/default.nix b/pkgs/development/ocaml-modules/qcheck/default.nix
index 2a0e6c0ae40c..dc73f42a13b0 100644
--- a/pkgs/development/ocaml-modules/qcheck/default.nix
+++ b/pkgs/development/ocaml-modules/qcheck/default.nix
@@ -3,7 +3,7 @@
buildDunePackage {
pname = "qcheck";
- inherit (qcheck-ounit) version src;
+ inherit (qcheck-ounit) version useDune2 src;
propagatedBuildInputs = [ qcheck-ounit ];
diff --git a/pkgs/development/ocaml-modules/qcheck/ounit.nix b/pkgs/development/ocaml-modules/qcheck/ounit.nix
index 06897987a954..62b082f48fb2 100644
--- a/pkgs/development/ocaml-modules/qcheck/ounit.nix
+++ b/pkgs/development/ocaml-modules/qcheck/ounit.nix
@@ -3,7 +3,7 @@
buildDunePackage {
pname = "qcheck-ounit";
- inherit (qcheck-core) version src;
+ inherit (qcheck-core) version useDune2 src;
propagatedBuildInputs = [ qcheck-core ounit ];
diff --git a/pkgs/development/ocaml-modules/qtest/default.nix b/pkgs/development/ocaml-modules/qtest/default.nix
index e7f00803a19c..d5829127a8bc 100644
--- a/pkgs/development/ocaml-modules/qtest/default.nix
+++ b/pkgs/development/ocaml-modules/qtest/default.nix
@@ -4,6 +4,8 @@ buildDunePackage rec {
pname = "qtest";
version = "2.11.1";
+ useDune2 = true;
+
src = fetchFromGitHub {
owner = "vincent-hugot";
repo = pname;
diff --git a/pkgs/development/ocaml-modules/tls/default.nix b/pkgs/development/ocaml-modules/tls/default.nix
index 375c2de27e0e..5aa3ecb0bf17 100644
--- a/pkgs/development/ocaml-modules/tls/default.nix
+++ b/pkgs/development/ocaml-modules/tls/default.nix
@@ -6,12 +6,12 @@
buildDunePackage rec {
minimumOCamlVersion = "4.08";
- version = "0.12.6";
+ version = "0.12.7";
pname = "tls";
src = fetchurl {
url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-v${version}.tbz";
- sha256 = "14b2289nhb65qm8wrw51y8qgz5ysn8hcbrj5plznd1pdzl46zxc9";
+ sha256 = "1c7hmcpcxn1bfa9cavqzriv7py2q7xfbdpb7kh1kb3j1qjap17dc";
};
useDune2 = true;
diff --git a/pkgs/development/ocaml-modules/xtmpl/default.nix b/pkgs/development/ocaml-modules/xtmpl/default.nix
index 2264f0dedbf9..31c671538a58 100644
--- a/pkgs/development/ocaml-modules/xtmpl/default.nix
+++ b/pkgs/development/ocaml-modules/xtmpl/default.nix
@@ -2,6 +2,7 @@
, js_of_ocaml-ppx, re }:
if stdenv.lib.versionOlder ocaml.version "4.03"
+|| stdenv.lib.versionAtLeast ocaml.version "4.11"
then throw "xtmpl not supported for ocaml ${ocaml.version}"
else
stdenv.mkDerivation rec {