about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorsternenseemann <git@lukasepple.de>2020-05-17 02:16:49 +0200
committerVincent Laporte <vbgl@users.noreply.github.com>2020-05-26 08:09:07 +0200
commit9d33cb414a464e3f1141cfc439ebd2090f81a34e (patch)
treef0b765e0b76c5b6904de6acd7a35b6a72195172b /pkgs/development/ocaml-modules
parentd3082a31cd0055e8ef8c72636d9866a52c936e4f (diff)
downloadnixlib-9d33cb414a464e3f1141cfc439ebd2090f81a34e.tar
nixlib-9d33cb414a464e3f1141cfc439ebd2090f81a34e.tar.gz
nixlib-9d33cb414a464e3f1141cfc439ebd2090f81a34e.tar.bz2
nixlib-9d33cb414a464e3f1141cfc439ebd2090f81a34e.tar.lz
nixlib-9d33cb414a464e3f1141cfc439ebd2090f81a34e.tar.xz
nixlib-9d33cb414a464e3f1141cfc439ebd2090f81a34e.tar.zst
nixlib-9d33cb414a464e3f1141cfc439ebd2090f81a34e.zip
ocamlPackages.curly: init at 2019-11-14
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r--pkgs/development/ocaml-modules/curly/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/curly/default.nix b/pkgs/development/ocaml-modules/curly/default.nix
new file mode 100644
index 000000000000..1d455582b3b3
--- /dev/null
+++ b/pkgs/development/ocaml-modules/curly/default.nix
@@ -0,0 +1,27 @@
+{ lib, buildDunePackage, fetchFromGitHub, ocaml
+, result, alcotest, cohttp-lwt-unix, odoc, curl }:
+
+buildDunePackage rec {
+  pname = "curly";
+  version = "unstable-2019-11-14";
+
+  minimumOCamlVersion = "4.02";
+
+  src = fetchFromGitHub {
+    owner  = "rgrinberg";
+    repo   = pname;
+    rev    = "33a538c89ef8279d4591454a7f699a4183dde5d0";
+    sha256 = "10pxbvf5xrsajaxrccxh2lqhgp3yaf61z9w03rvb2mq44nc2dggz";
+  };
+
+  propagatedBuildInputs = [ result ];
+  checkInputs = [ alcotest cohttp-lwt-unix ];
+  # test dependencies are only available for >= 4.05
+  doCheck = lib.versionAtLeast ocaml.version "4.05";
+
+  postPatch = ''
+    substituteInPlace src/curly.ml \
+      --replace "exe=\"curl\"" "exe=\"${curl}/bin/curl\""
+    '';
+}
+