ocamlPackages.curly: unstable-2019-11-14 → 0.2.0
This commit is contained in:
parent
95b36ade44
commit
bb38f0570d
1 changed files with 10 additions and 9 deletions
|
@ -1,25 +1,26 @@
|
||||||
{ lib, buildDunePackage, fetchFromGitHub, ocaml
|
{ stdenv, buildDunePackage, fetchurl, ocaml
|
||||||
, result, alcotest, cohttp-lwt-unix, odoc, curl }:
|
, result, alcotest, cohttp-lwt-unix, odoc, curl }:
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "curly";
|
pname = "curly";
|
||||||
version = "unstable-2019-11-14";
|
version = "0.2.0";
|
||||||
|
|
||||||
minimumOCamlVersion = "4.02";
|
minimumOCamlVersion = "4.02";
|
||||||
|
|
||||||
useDune2 = true;
|
useDune2 = true;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchurl {
|
||||||
owner = "rgrinberg";
|
url = "https://github.com/rgrinberg/curly/releases/download/${version}/curly-${version}.tbz";
|
||||||
repo = pname;
|
sha256 = "07vqdrklar0d5i83ip7sjw2c1v18a9m3anw07vmi5ay29pxzal6k";
|
||||||
rev = "33a538c89ef8279d4591454a7f699a4183dde5d0";
|
|
||||||
sha256 = "10pxbvf5xrsajaxrccxh2lqhgp3yaf61z9w03rvb2mq44nc2dggz";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ result ];
|
propagatedBuildInputs = [ result ];
|
||||||
checkInputs = [ alcotest cohttp-lwt-unix ];
|
checkInputs = [ alcotest cohttp-lwt-unix ];
|
||||||
# test dependencies are only available for >= 4.05
|
# test dependencies are only available for >= 4.08
|
||||||
doCheck = lib.versionAtLeast ocaml.version "4.05";
|
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 = ''
|
postPatch = ''
|
||||||
substituteInPlace src/curly.ml \
|
substituteInPlace src/curly.ml \
|
||||||
|
|
Loading…
Reference in a new issue