about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/webmachine
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2019-12-01 18:20:21 +0000
committerVincent Laporte <vbgl@users.noreply.github.com>2019-12-08 07:55:34 +0100
commit9ed43c870eb1b4c1ad147288788f90709ef9f32e (patch)
tree900260c5e615c2514730c7975c3da25dbeac0c87 /pkgs/development/ocaml-modules/webmachine
parent84d650ed2b72e6186388c79e23354d10eafccb2c (diff)
downloadnixlib-9ed43c870eb1b4c1ad147288788f90709ef9f32e.tar
nixlib-9ed43c870eb1b4c1ad147288788f90709ef9f32e.tar.gz
nixlib-9ed43c870eb1b4c1ad147288788f90709ef9f32e.tar.bz2
nixlib-9ed43c870eb1b4c1ad147288788f90709ef9f32e.tar.lz
nixlib-9ed43c870eb1b4c1ad147288788f90709ef9f32e.tar.xz
nixlib-9ed43c870eb1b4c1ad147288788f90709ef9f32e.tar.zst
nixlib-9ed43c870eb1b4c1ad147288788f90709ef9f32e.zip
ocamlPackages.webmachine: init at 0.6.1
Diffstat (limited to 'pkgs/development/ocaml-modules/webmachine')
-rw-r--r--pkgs/development/ocaml-modules/webmachine/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/webmachine/default.nix b/pkgs/development/ocaml-modules/webmachine/default.nix
new file mode 100644
index 000000000000..79e36b66d117
--- /dev/null
+++ b/pkgs/development/ocaml-modules/webmachine/default.nix
@@ -0,0 +1,32 @@
+{ lib, buildDunePackage, fetchFromGitHub
+, cohttp, dispatch, ptime
+, ounit
+}:
+
+buildDunePackage rec {
+  pname = "webmachine";
+  version = "0.6.1";
+
+  minimumOCamlVersion = "4.04";
+
+  src = fetchFromGitHub {
+    owner = "inhabitedtype";
+    repo = "ocaml-webmachine";
+    rev = "${version}";
+    sha256 = "0kpbxsvjzylbxmxag77k1c8m8mwn4f4xscqk2i7fc591llgq9fp3";
+  };
+
+  propagatedBuildInputs = [ cohttp dispatch ptime ];
+
+  checkInputs = lib.optional doCheck ounit;
+
+  doCheck = true;
+
+  meta = {
+    inherit (src.meta) homepage;
+    license = lib.licenses.bsd3;
+    description = "A REST toolkit for OCaml";
+    maintainers = [ lib.maintainers.vbgl ];
+  };
+
+}