about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-07-02 12:01:08 +0000
committerGitHub <noreply@github.com>2021-07-02 12:01:08 +0000
commit03ea42ab93c3c8babe97e1382bc921bde2106037 (patch)
treeaa610119c5f3e7876e7bc6798fff48f074009355 /pkgs/development/ocaml-modules
parent95c5cd24d3a2e94e0367b019875e20681c6b8903 (diff)
parent357d2c8f6087685fe35cb1889a005a4dd4cce7b8 (diff)
downloadnixlib-03ea42ab93c3c8babe97e1382bc921bde2106037.tar
nixlib-03ea42ab93c3c8babe97e1382bc921bde2106037.tar.gz
nixlib-03ea42ab93c3c8babe97e1382bc921bde2106037.tar.bz2
nixlib-03ea42ab93c3c8babe97e1382bc921bde2106037.tar.lz
nixlib-03ea42ab93c3c8babe97e1382bc921bde2106037.tar.xz
nixlib-03ea42ab93c3c8babe97e1382bc921bde2106037.tar.zst
nixlib-03ea42ab93c3c8babe97e1382bc921bde2106037.zip
Merge master into staging-next
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/alcotest/mirage.nix16
-rw-r--r--pkgs/development/ocaml-modules/routes/default.nix21
2 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/alcotest/mirage.nix b/pkgs/development/ocaml-modules/alcotest/mirage.nix
new file mode 100644
index 000000000000..b4ba4246b2cd
--- /dev/null
+++ b/pkgs/development/ocaml-modules/alcotest/mirage.nix
@@ -0,0 +1,16 @@
+{ lib, buildDunePackage, alcotest, lwt, logs, mirage-clock, duration }:
+
+buildDunePackage {
+  pname = "alcotest-mirage";
+
+  inherit (alcotest) version src useDune2;
+
+  propagatedBuildInputs = [ alcotest lwt logs mirage-clock duration ];
+
+  doCheck = true;
+
+  meta = alcotest.meta // {
+    description = "Mirage implementation for Alcotest";
+    maintainers = with lib.maintainers; [ ulrikstrid anmonteiro ];
+  };
+}
diff --git a/pkgs/development/ocaml-modules/routes/default.nix b/pkgs/development/ocaml-modules/routes/default.nix
new file mode 100644
index 000000000000..a83d0db5d84d
--- /dev/null
+++ b/pkgs/development/ocaml-modules/routes/default.nix
@@ -0,0 +1,21 @@
+{ lib, fetchurl, buildDunePackage }:
+
+buildDunePackage rec {
+  pname = "routes";
+  version = "0.9.1";
+
+  useDune2 = true;
+  minimalOCamlVersion = "4.05";
+
+  src = fetchurl {
+    url = "https://github.com/anuragsoni/routes/releases/download/${version}/routes-${version}.tbz";
+    sha256 = "0h2c1p5w6237c1lmsl5c8q2dj5dq20gf2cmb12nbmlfn12sfmcrl";
+  };
+
+  meta = with lib; {
+    description = "Typed routing for OCaml applications";
+    license = licenses.bsd3;
+    homepage = "https://anuragsoni.github.io/routes";
+    maintainers = with maintainers; [ ulrikstrid anmonteiro ];
+  };
+}