@@ -1,25 +1,26 @@
1−{ lib, buildDunePackage, fetchFromGitHub, ocaml
1+{ stdenv, buildDunePackage, fetchurl, ocaml
22, result, alcotest, cohttp-lwt-unix, odoc, curl }:
33
44buildDunePackage rec {
55 pname = "curly";
6− version = "unstable-2019-11-14";
6+ version = "0.2.0";
77
88 minimumOCamlVersion = "4.02";
99
1010 useDune2 = true;
1111
12− src = fetchFromGitHub {
13− owner = "rgrinberg";
14− repo = pname;
15− rev = "33a538c89ef8279d4591454a7f699a4183dde5d0";
16− sha256 = "10pxbvf5xrsajaxrccxh2lqhgp3yaf61z9w03rvb2mq44nc2dggz";
12+ src = fetchurl {
13+ url = "https://github.com/rgrinberg/curly/releases/download/${version}/curly-${version}.tbz";
14+ sha256 = "07vqdrklar0d5i83ip7sjw2c1v18a9m3anw07vmi5ay29pxzal6k";
1715 };
1816
1917 propagatedBuildInputs = [ result ];
2018 checkInputs = [ alcotest cohttp-lwt-unix ];
21− # test dependencies are only available for >= 4.05
22− doCheck = lib.versionAtLeast ocaml.version "4.05";
19+ # test dependencies are only available for >= 4.08
20+ doCheck = stdenv.lib.versionAtLeast ocaml.version "4.08"
21+ # Some test fails in macOS sandbox
22+ # > Fatal error: exception Unix.Unix_error(Unix.EPERM, "bind", "")
23+ && !stdenv.isDarwin;
2324
2425 postPatch = ''
2526 substituteInPlace src/curly.ml \