-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ocamlPackages.cohttp*: 2.5.3 → 3.0.0
cohttp-lwt-unix-{ssl,nossl}: new packages
- Loading branch information
1 parent
3f90932
commit 619d49e
Showing
7 changed files
with
90 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ buildDunePackage, cohttp-lwt | ||
, conduit-lwt, cmdliner, magic-mime, logs, fmt, ocaml_lwt, ca-certs | ||
, ounit | ||
}: | ||
|
||
buildDunePackage { | ||
pname = "cohttp-lwt-unix-nossl"; | ||
|
||
minimumOCamlVersion = "4.08"; | ||
|
||
inherit (cohttp-lwt) src version useDune2; | ||
|
||
propagatedBuildInputs = [ | ||
cohttp-lwt conduit-lwt ca-certs cmdliner magic-mime logs fmt ocaml_lwt | ||
]; | ||
|
||
doCheck = true; | ||
checkInputs = [ ounit ]; | ||
|
||
meta = cohttp-lwt.meta // { | ||
description = "CoHTTP implementation for Unix and Windows using Lwt"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ buildDunePackage, cohttp-lwt, cohttp-lwt-unix-nossl | ||
, conduit-lwt, conduit-lwt-ssl, ca-certs, cmdliner | ||
, magic-mime, logs, fmt, ocaml_lwt | ||
, ounit | ||
}: | ||
|
||
buildDunePackage { | ||
pname = "cohttp-lwt-unix-ssl"; | ||
|
||
minimumOCamlVersion = "4.08"; | ||
|
||
inherit (cohttp-lwt) src version useDune2; | ||
|
||
propagatedBuildInputs = [ | ||
cohttp-lwt cohttp-lwt-unix-nossl conduit-lwt conduit-lwt-ssl | ||
ca-certs cmdliner magic-mime logs fmt ocaml_lwt | ||
]; | ||
|
||
doCheck = true; | ||
checkInputs = [ ounit ]; | ||
|
||
meta = cohttp-lwt.meta // { | ||
description = "CoHTTP implementation for Unix and Windows using Lwt"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,27 @@ | ||
{ stdenv, buildDunePackage, cohttp-lwt | ||
, conduit-lwt-unix, ppx_sexp_conv | ||
, cmdliner, fmt, magic-mime | ||
{ lib, buildDunePackage, cohttp-lwt, cohttp-lwt-unix-nossl | ||
, conduit-lwt, conduit-lwt-tls, ca-certs | ||
, cmdliner, magic-mime, logs, fmt, ocaml_lwt | ||
}: | ||
|
||
if !stdenv.lib.versionAtLeast cohttp-lwt.version "0.99" | ||
if !lib.versionAtLeast cohttp-lwt.version "0.99" | ||
then cohttp-lwt | ||
else | ||
|
||
buildDunePackage { | ||
pname = "cohttp-lwt-unix"; | ||
inherit (cohttp-lwt) version src meta; | ||
inherit (cohttp-lwt) version src useDune2; | ||
|
||
useDune2 = true; | ||
minimumOCamlVersion = "4.08"; | ||
|
||
buildInputs = [ cmdliner ppx_sexp_conv ]; | ||
propagatedBuildInputs = [ | ||
cohttp-lwt cohttp-lwt-unix-nossl conduit-lwt conduit-lwt-tls ca-certs | ||
cmdliner magic-mime logs fmt ocaml_lwt | ||
]; | ||
|
||
propagatedBuildInputs = [ cohttp-lwt conduit-lwt-unix fmt magic-mime ]; | ||
# requires system trust anchor not available in sandbox | ||
doCheck = false; | ||
|
||
meta = cohttp-lwt.meta // { | ||
description = "CoHTTP implementation for Unix and Windows using Lwt"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters