Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Experimental work to add cohttp support for opam-cross-windows #329

Draft
wants to merge 32 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
306d058
add optint v0.3
Aug 31, 2024
efcbaf5
update checkseum to 0.5.2
Aug 31, 2024
c9f5ddf
update cmdliner to 1.3.0
Aug 31, 2024
f4537f2
update decompress to 1.5.3
Aug 31, 2024
028cdf9
fix cmdliner
Aug 31, 2024
39c40e0
fix cmdliner
Aug 31, 2024
3c24615
add cohttp-lwt-unix at version 5.3.0
Aug 31, 2024
e492123
add cohttp-lwt at version 5.3.0
Aug 31, 2024
0a485ce
add cohttp at version 5.3.0
Aug 31, 2024
c31ac67
add uri-sexp at version 4.2.0
Aug 31, 2024
d38cbf2
update base64 to 3.5.1
Aug 31, 2024
e802966
update lwt to 5.0.7
Aug 31, 2024
a9b265a
add macaddr and ipaddr at version 5.6.0
Aug 31, 2024
a49775e
add domain-name at version 0.4.0
Aug 31, 2024
1939cd8
add conduit and conduit-lwt at version 6.2.3
Aug 31, 2024
3b93fe5
add ipaddr-sexp at version 5.6.0
Aug 31, 2024
623a549
add conduit-lwt-unix at version 6.2.3
Aug 31, 2024
9cb5071
fix cohttp-lwt-unix
Aug 31, 2024
5dff8fa
downgrade ipaddr version
Aug 31, 2024
1294b56
fix conduit-lwt-unix
Aug 31, 2024
21e3e27
add lwt ppx at version 2.1.0
Aug 31, 2024
7e43388
test
Aug 31, 2024
d282028
add lwt_ssl at version 1.2.0
Aug 31, 2024
ba42b4f
fix moodle client ?
skaterboy37 Sep 1, 2024
c70cd3b
fix: use ca-certs-windows instead of linux one
skaterboy37 Sep 2, 2024
afa2c06
add ca-certs-windows at version 1.0.0
skaterboy37 Sep 2, 2024
315ac48
add ohex at version 0.2.0
skaterboy37 Sep 2, 2024
c934473
fix ohex-windows dependency
skaterboy37 Sep 2, 2024
271e2f2
add digestif and eqaf
skaterboy37 Sep 2, 2024
b175997
fix digestif and ptime dependency
skaterboy37 Sep 2, 2024
d3c5bde
add ptime at version 1.1.0
skaterboy37 Sep 2, 2024
2d7eeb9
try to use another ptime build
skaterboy37 Sep 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions packages/base64-windows/base64-windows.3.5.1/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
opam-version: "2.0"
maintainer: "[email protected]"
authors: [ "Thomas Gazagnaire"
"Anil Madhavapeddy" "Calascibetta Romain"
"Peter Zotov" ]
license: "ISC"
homepage: "https://github.com/mirage/ocaml-base64"
doc: "https://mirage.github.io/ocaml-base64/"
bug-reports: "https://github.com/mirage/ocaml-base64/issues"
dev-repo: "git+https://github.com/mirage/ocaml-base64.git"
synopsis: "Base64 encoding for OCaml"
description: """
Base64 is a group of similar binary-to-text encoding schemes that represent
binary data in an ASCII string format by translating it into a radix-64
representation. It is specified in RFC 4648.
"""
depends: [
"ocaml-windows" {>= "4.03.0"}
"dune" {>= "2.3"}
]
build: [
["dune" "build" "-p" "base64" "-j" jobs "-x" "windows"]
]
url {
src:
"https://github.com/mirage/ocaml-base64/releases/download/v3.5.1/base64-3.5.1.tbz"
checksum: [
"sha256=d8fedaa59bd12feae7acc08b5928dd478aac523f4ca8d240470d2500651c65ed"
"sha512=278bd2029800d90ed88ff59b9de723013e645523556a1667b64178d6b5058a7d6da91efffef3589c35569b5fa10ddee74c93f5a3d156b9146c8af5b7fe44aeaf"
]
}
x-commit-hash: "084346f14ed1e6706d733402dd6ff65b0dc4f718"
57 changes: 57 additions & 0 deletions packages/ca-certs-windows/ca-certs-windows.1.0.0/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
opam-version: "2.0"
synopsis: "Detect root CA certificates from the operating system"
description: """
TLS requires a set of root anchors (Certificate Authorities) to
authenticate servers. This library exposes this list so that it can be
registered with ocaml-tls.
"""
maintainer: ["Etienne Millon <[email protected]>"]
authors: [
"Etienne Millon <[email protected]>, Hannes Mehnert <[email protected]>"
]
license: "ISC"
homepage: "https://github.com/mirage/ca-certs"
doc: "https://mirage.github.io/ca-certs/doc"
bug-reports: "https://github.com/mirage/ca-certs/issues"
depends: [
"dune" {>= "2.0"}
"bos-windows"
"fpath-windows"
"ptime-windows"
"logs-windows"
"digestif-windows" {>= "1.2.0"}
"mirage-crypto" {>= "1.0.0"}
"x509" {>= "1.0.0"}
"ocaml-windows" {>= "4.13.0"}
"ohex-windows" {>= "0.2.0"}
]
conflicts: [
"result" {< "1.5"}
]
dev-repo: "git+https://github.com/mirage/ca-certs.git"
build: [
[
"dune"
"build"
"-p"
"ca-certs"
"-j"
jobs
"@install"
"-x"
"windows"
]
]
tags: ["org:mirage"]
depexts: [
["ca_root_nss"] {os = "freebsd"}
]
url {
src:
"https://github.com/mirage/ca-certs/releases/download/v1.0.0/ca-certs-1.0.0.tbz"
checksum: [
"sha256=8690f2312346724799f2d8a1b684ec16b627b027d4164803a0e2b7e2462c0a72"
"sha512=c710059766c0062f767d481f7fd97a693b34d3c83e6a53081dee2074b6b40dccbf9d13fcedf253f16ff2381f36da91f84f40749c68537c47abf619322d95d509"
]
}
x-commit-hash: "2c5c0bcc2a336f77ec4bb843265334217996c559"
41 changes: 41 additions & 0 deletions packages/checkseum-windows/checkseum-windows.0.5.2/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
opam-version: "2.0"
maintainer: [ "Romain Calascibetta <[email protected]>" ]
authors: [ "Romain Calascibetta <[email protected]>" ]
homepage: "https://github.com/mirage/checkseum"
bug-reports: "https://github.com/mirage/checkseum/issues"
dev-repo: "git+https://github.com/mirage/checkseum.git"
doc: "https://mirage.github.io/checkseum/"
license: "MIT"
synopsis: "Adler-32, CRC32 and CRC32-C implementation in C and OCaml"
description: """
Checkseum is a library to provide implementation of Adler-32, CRC32 and CRC32-C
in C and OCaml.

This library use the linking trick to choose between the C implementation
(checkseum.c) or the OCaml implementation (checkseum.ocaml). This library is on
top of optint to get the best representation of an int32. """

build: [
[ "dune" "build" "-p" "checkseum" "-j" jobs "-x" "windows" ]
]

depends: [
"ocaml-windows" {>= "4.07.0"}
"dune" {>= "2.6.0"}
"dune-configurator"
"optint-windows" {>= "0.3.0"}
]

conflicts: [
"mirage-xen" {< "6.0.0"}
"ocaml-freestanding"
]
url {
src:
"https://github.com/mirage/checkseum/releases/download/v0.5.2/checkseum-0.5.2.tbz"
checksum: [
"sha256=9e5e4fd4405cb4a8b4df00877543251833e08a6499ef42ccb8dba582df0dafc8"
"sha512=b66261effaa561ce5cb8d92a3ec78565a5579bf3d3c4b7f08eba59998ac4d7f49ae9c240986c231b22b965c93a949a8a2e35edec42277ecb5602829945fba6db"
]
}
x-commit-hash: "79867ddb97f347657ff2ec026da1d77ec7864db6"
1 change: 1 addition & 0 deletions packages/cmdliner-windows/cmdliner-windows.1.3.0/findlib
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cmdliner
41 changes: 41 additions & 0 deletions packages/cmdliner-windows/cmdliner-windows.1.3.0/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
opam-version: "2.0"
maintainer: "Daniel Bünzli <daniel.buenzl [email protected]>"
authors: ["Daniel Bünzli <daniel.buenzl [email protected]>"]
homepage: "http://erratique.ch/software/cmdliner"
doc: "http://erratique.ch/software/cmdliner/doc/Cmdliner"
dev-repo: "git+http://erratique.ch/repos/cmdliner.git"
bug-reports: "https://github.com/dbuenzli/cmdliner/issues"
tags: [ "cli" "system" "declarative" "org:erratique" ]
license: "ISC"
build: [["ocaml" "pkg/pkg.ml" "build" "--toolchain" "windows"]]
install: [["opam-installer" "--prefix=%{prefix}%/windows-sysroot" "cmdliner.install"]]
remove: [["ocamlfind" "-toolchain" "windows" "remove" "cmdliner"]]
depends: [
"ocaml" {>= "4.01.0"}
"ocamlbuild" {build}
"topkg" {build}
"ocaml-windows"
"opam-installer" {build}
]
synopsis: "Declarative definition of command line interfaces for OCaml"
description: """
Cmdliner is a module for the declarative definition of command line
interfaces.

It provides a simple and compositional mechanism to convert command
line arguments to OCaml values and pass them to your functions. The
module automatically handles syntax errors, help messages and UNIX man
page generation. It supports programs with single or multiple commands
and respects most of the [POSIX][1] and [GNU][2] conventions.

Cmdliner is made of a single independent module and distributed under
the BSD3 license.

[1]: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html
[2]: http://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html"""
flags: light-uninstall
url {
src: "https://erratique.ch/software/cmdliner/releases/cmdliner-1.3.0.tbz"
checksum:
"sha512=4c46bc334444ff772637deae2f5ba03645d7a1b7db523470a1246acfce79b971c764d964cbb02388639b3161b279700d9ade95da550446fb32aa4849c8a8f283"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
opam-version: "2.0"
maintainer: "[email protected]"
authors: [
"Anil Madhavapeddy"
"Stefano Zacchiroli"
"David Sheets"
"Thomas Gazagnaire"
"David Scott"
"Rudi Grinberg"
"Andy Ray"
]
synopsis: "CoHTTP implementation for Unix and Windows using Lwt"
description: """
An implementation of an HTTP client and server using the Lwt
concurrency library. See the `Cohttp_lwt_unix` module for information
on how to use this. The package also installs `cohttp-curl-lwt`
and a `cohttp-server-lwt` binaries for quick uses of a HTTP(S)
client and server respectively.

Although the name implies that this only works under Unix, it
should also be fine under Windows too."""
license: "ISC"
tags: ["org:mirage" "org:xapi-project"]
homepage: "https://github.com/mirage/ocaml-cohttp"
doc: "https://mirage.github.io/ocaml-cohttp/"
bug-reports: "https://github.com/mirage/ocaml-cohttp/issues"
depends: [
"ocaml-windows" {>= "4.08"}
"dune" {>= "2.0"}
"conduit-lwt-windows" {>= "5.0.0"}
"conduit-lwt-unix-windows" {>= "5.0.0"}
"cmdliner-windows" {>= "1.1.0"}
"magic-mime-windows"
"logs-windows"
"fmt-windows" {>= "0.8.2"}
"cohttp-lwt-windows" {>= "5.3.0" & <= "5.3.1"}
"ppx_sexp_conv-windows" {>= "v0.13.0"}
"lwt-windows" {>= "3.0.0"}
"base-unix"
]
build: [
["dune" "build" "-p" "cohttp-lwt-unix" "-j" jobs "-x" "windows" ]
]
dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git"
url {
src:
"https://github.com/mirage/ocaml-cohttp/releases/download/v5.3.0/cohttp-5.3.0.tbz"
checksum: [
"sha256=b3bd91c704e5ea510e924b83ab2ede1fc46a2cce448b0f8cef4883b9a16eeddd"
"sha512=529930d9b1f38737d91f47cb94f8bae381df87ea941cb8e75ee798354763bdf5091f4f3be31d0ba14b9944dc68203a3d98e235c38c66e7e176a114be9ff4acf3"
]
}
x-commit-hash: "74a6f8d1c9669397c83c75c130ef5cb4dd62326b"
49 changes: 49 additions & 0 deletions packages/cohttp-lwt-windows/cohttp-lwt-windows.5.3.0/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
opam-version: "2.0"
maintainer: "[email protected]"
authors: [
"Anil Madhavapeddy"
"Stefano Zacchiroli"
"David Sheets"
"Thomas Gazagnaire"
"David Scott"
"Rudi Grinberg"
"Andy Ray"
]
synopsis: "CoHTTP implementation using the Lwt concurrency library"
description: """
This is a portable implementation of HTTP that uses the Lwt
concurrency library to multiplex IO. It implements as much of the
logic in an OS-independent way as possible, so that more specialised
modules can be tailored for different targets. For example, you
can install `cohttp-lwt-unix` or `cohttp-lwt-jsoo` for a Unix or
JavaScript backend, or `cohttp-mirage` for the MirageOS unikernel
version of the library. All of these implementations share the same
IO logic from this module."""
license: "ISC"
tags: ["org:mirage" "org:xapi-project"]
homepage: "https://github.com/mirage/ocaml-cohttp"
doc: "https://mirage.github.io/ocaml-cohttp/"
bug-reports: "https://github.com/mirage/ocaml-cohttp/issues"
depends: [
"ocaml-windows" {>= "4.08"}
"dune" {>= "2.0"}
"cohttp-windows" {>= "5.3.0" & <= "5.3.1"}
"lwt-windows" {>= "2.5.0"}
"sexplib0-windows"
"ppx_sexp_conv-windows" {>= "v0.13.0"}
"logs-windows"
"uri-windows" {>= "2.0.0"}
]
build: [
["dune" "build" "-p" "cohttp-lwt" "-j" jobs "-x" "windows" ]
]
dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git"
url {
src:
"https://github.com/mirage/ocaml-cohttp/releases/download/v5.3.0/cohttp-5.3.0.tbz"
checksum: [
"sha256=b3bd91c704e5ea510e924b83ab2ede1fc46a2cce448b0f8cef4883b9a16eeddd"
"sha512=529930d9b1f38737d91f47cb94f8bae381df87ea941cb8e75ee798354763bdf5091f4f3be31d0ba14b9944dc68203a3d98e235c38c66e7e176a114be9ff4acf3"
]
}
x-commit-hash: "74a6f8d1c9669397c83c75c130ef5cb4dd62326b"
57 changes: 57 additions & 0 deletions packages/cohttp-windows/cohttp-windows.5.3.0/opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
opam-version: "2.0"
maintainer: "[email protected]"
authors: [
"Anil Madhavapeddy"
"Stefano Zacchiroli"
"David Sheets"
"Thomas Gazagnaire"
"David Scott"
"Rudi Grinberg"
"Andy Ray"
]
synopsis: "An OCaml library for HTTP clients and servers"
description: """
Cohttp is an OCaml library for creating HTTP daemons. It has a portable
HTTP parser, and implementations using various asynchronous programming
libraries.

See the cohttp-async, cohttp-lwt, cohttp-lwt-unix, cohttp-lwt-jsoo and
cohttp-mirage libraries for concrete implementations for particular
targets.

You can implement other targets using the parser very easily. Look at the `IO`
signature in `lib/s.mli` and implement that in the desired backend.

You can activate some runtime debugging by setting `COHTTP_DEBUG` to any
value, and all requests and responses will be written to stderr. Further
debugging of the connection layer can be obtained by setting `CONDUIT_DEBUG`
to any value."""
license: "ISC"
tags: ["org:mirage" "org:xapi-project"]
homepage: "https://github.com/mirage/ocaml-cohttp"
doc: "https://mirage.github.io/ocaml-cohttp/"
bug-reports: "https://github.com/mirage/ocaml-cohttp/issues"
depends: [
("ocaml-windows" {>= "4.08" & < "5.0"} | ("ocaml" {>= "5.0"} & "base-bytes"))
"dune" {>= "2.0"}
"re-windows" {>= "1.9.0"}
"uri-windows" {>= "2.0.0"}
"uri-sexp-windows"
"sexplib0-windows"
"ppx_sexp_conv-windows" {>= "v0.13.0"}
"stringext-windows"
"base64-windows" {>= "3.1.0"}
]
build: [
["dune" "build" "-p" "cohttp" "-j" jobs "-x" "windows" ]
]
dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git"
url {
src:
"https://github.com/mirage/ocaml-cohttp/releases/download/v5.3.0/cohttp-5.3.0.tbz"
checksum: [
"sha256=b3bd91c704e5ea510e924b83ab2ede1fc46a2cce448b0f8cef4883b9a16eeddd"
"sha512=529930d9b1f38737d91f47cb94f8bae381df87ea941cb8e75ee798354763bdf5091f4f3be31d0ba14b9944dc68203a3d98e235c38c66e7e176a114be9ff4acf3"
]
}
x-commit-hash: "74a6f8d1c9669397c83c75c130ef5cb4dd62326b"
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
opam-version: "2.0"
maintainer: "[email protected]"
authors: [
"Anil Madhavapeddy" "Thomas Leonard" "Thomas Gazagnaire" "Rudi Grinberg"
]
license: "ISC"
tags: "org:mirage"
homepage: "https://github.com/mirage/ocaml-conduit"
bug-reports: "https://github.com/mirage/ocaml-conduit/issues"
depends: [
"ocaml-windows" {>= "4.08.0"}
"dune" {>= "2.0"}
"base-unix"
"logs-windows"
"ppx_sexp_conv-windows" {>="v0.13.0"}
"conduit-lwt-windows" {=version}
"lwt-windows" {>= "3.0.0"}
"uri-windows" {>= "1.9.4"}
"ipaddr-windows" {>= "4.0.0"}
"ipaddr-sexp-windows"
"ca-certs-windows"
]
depopts: ["tls-lwt" "lwt_ssl" "launchd"]
conflicts: [
"tls-lwt" {< "0.16.0"}
"tls-lwt" {>= "1.0.0"}
"ssl" {< "0.5.12"}
]
build: [
["dune" "build" "-p" "conduit-lwt-unix" "-j" jobs "-x" "windows"]
]
dev-repo: "git+https://github.com/mirage/ocaml-conduit.git"
synopsis: "A network connection establishment library for Lwt_unix"
url {
src:
"https://github.com/mirage/ocaml-conduit/releases/download/v6.2.3/conduit-6.2.3.tbz"
checksum: [
"sha256=3a4684bb1485b1f247d6084dd0a356e1027e92c2cd467b35cabd59a764423e79"
"sha512=9fdb07540ae495e820e454a81f333551c18d3207c974adf35719198b93ff3f3d368f6558af8a80b6bd2af720ec6cbd274e7eecb816ac87384bcf8ac0d87357d3"
]
}
x-commit-hash: "81fe395407308b01f573b598e85be99fea1cdbef"
Loading
Loading