aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/curly/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/curly/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/curly/default.nix19
1 files changed, 10 insertions, 9 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/curly/default.nix b/infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/curly/default.nix
index a17ea72140ff..236b9c19c928 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/ocaml-modules/curly/default.nix
+++ b/infra/libkookie/nixpkgs/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 \