diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2020-10-29 18:35:18 +0100 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2020-10-30 14:36:21 +0100 |
commit | bb38f0570dd0def478a475c91948800b24230e4b (patch) | |
tree | 8dff6cfe961ab8be8b626bc299e7a0a831dd02b8 /pkgs/development/ocaml-modules/curly | |
parent | 95b36ade445f38e6f2442773450a702972226000 (diff) |
ocamlPackages.curly: unstable-2019-11-14 → 0.2.0
Diffstat (limited to 'pkgs/development/ocaml-modules/curly')
-rw-r--r-- | pkgs/development/ocaml-modules/curly/default.nix | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/pkgs/development/ocaml-modules/curly/default.nix b/pkgs/development/ocaml-modules/curly/default.nix index a17ea72140ff1..236b9c19c928a 100644 --- a/pkgs/development/ocaml-modules/curly/default.nix +++ b/pkgs/development/ocaml-modules/curly/default.nix @@ -1,25 +1,26 @@ -{ lib, buildDunePackage, fetchFromGitHub, ocaml +{ stdenv, buildDunePackage, fetchurl, ocaml , result, alcotest, cohttp-lwt-unix, odoc, curl }: buildDunePackage rec { pname = "curly"; - version = "unstable-2019-11-14"; + version = "0.2.0"; minimumOCamlVersion = "4.02"; useDune2 = true; - src = fetchFromGitHub { - owner = "rgrinberg"; - repo = pname; - rev = "33a538c89ef8279d4591454a7f699a4183dde5d0"; - sha256 = "10pxbvf5xrsajaxrccxh2lqhgp3yaf61z9w03rvb2mq44nc2dggz"; + src = fetchurl { + url = "https://github.com/rgrinberg/curly/releases/download/${version}/curly-${version}.tbz"; + sha256 = "07vqdrklar0d5i83ip7sjw2c1v18a9m3anw07vmi5ay29pxzal6k"; }; propagatedBuildInputs = [ result ]; checkInputs = [ alcotest cohttp-lwt-unix ]; - # test dependencies are only available for >= 4.05 - doCheck = lib.versionAtLeast ocaml.version "4.05"; + # test dependencies are only available for >= 4.08 + doCheck = stdenv.lib.versionAtLeast ocaml.version "4.08" + # Some test fails in macOS sandbox + # > Fatal error: exception Unix.Unix_error(Unix.EPERM, "bind", "") + && !stdenv.isDarwin; postPatch = '' substituteInPlace src/curly.ml \ |