ocamlPackages: update a bunch of libraries from the mirage universe (#132550)
* ocamlPackages.cstruct: 6.0.0 -> 6.0.1 https://github.com/mirage/ocaml-cstruct/releases/tag/v6.0.1 * ocamlPackages.tls: 0.13.2 -> 0.14.1 * ocamlPackages.letsencrypt: 0.2.5 -> 0.3.0 ocamlPackages.letsencrypt-dns: init at 0.3.0 ocamlPackages.letsencrypt-app: init at 0.2.5 https://github.com/mmaker/ocaml-letsencrypt/releases/tag/v0.3.0 * ocamlPackages.paf: 0.0.3 -> 0.0.5 ocamlPackages.paf-cohttp: init at 0.0.5 ocamlPackages.paf-le: init at 0.0.5 * ocamlPackages.conduit*: 4.0.0 -> 4.0.1 * ocamlPackages.git*: 3.4.0 -> 3.5.0 * ocamlPackages.{ipaddr, macaddr}: 5.1.0 -> 5.2.0 https://github.com/mirage/ocaml-ipaddr/releases/tag/v5.2.0 Co-Authored-By: TG ⊗ Θ <*@tg-x.net> * jackline: unstable-2021-04-23 -> unstable-2021-08-10 * ocamlPackages.mirage-block-combinators: patch for cstruct 6.0.0 The patch is a trivial search and replace of Cstruct.len -> Cstruct.length otherwise the build will fail due to deprecation warnings. * ocamlPackages.x509: 0.14.0 -> 0.14.1 Co-authored-by: TG ⊗ Θ <*@tg-x.net>
This commit is contained in:
parent
af51852adf
commit
c1e83d738d
|
@ -4,7 +4,7 @@ with ocamlPackages;
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "jackline";
|
pname = "jackline";
|
||||||
version = "unstable-2021-04-23";
|
version = "unstable-2021-08-10";
|
||||||
|
|
||||||
minimumOCamlVersion = "4.08";
|
minimumOCamlVersion = "4.08";
|
||||||
|
|
||||||
|
@ -13,8 +13,8 @@ buildDunePackage rec {
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "hannesm";
|
owner = "hannesm";
|
||||||
repo = "jackline";
|
repo = "jackline";
|
||||||
rev = "861c59bb7cd27ad5c7558ff94cb0d0e8dca249e5";
|
rev = "73d87e9a62d534566bb0fbe64990d32d75487f11";
|
||||||
sha256 = "00waw5qr0n70i9l9b25r9ryfi836x4qrj046bb4k9qa4d0p8q1sa";
|
sha256 = "0wk574rqfg2vqz27nasxzwf67x51pj5fgl4vkc27r741dg4q6c5a";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInpts = [
|
nativeBuildInpts = [
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
{ lib, buildDunePackage, async, async_ssl, ppx_sexp_conv, ppx_here, uri, conduit }:
|
{ lib, buildDunePackage, async, async_ssl, ppx_sexp_conv, ppx_here, uri, conduit
|
||||||
|
, core, ipaddr, ipaddr-sexp, sexplib
|
||||||
|
}:
|
||||||
|
|
||||||
buildDunePackage {
|
buildDunePackage {
|
||||||
pname = "conduit-async";
|
pname = "conduit-async";
|
||||||
|
@ -11,7 +13,16 @@ buildDunePackage {
|
||||||
|
|
||||||
buildInputs = [ ppx_sexp_conv ppx_here ];
|
buildInputs = [ ppx_sexp_conv ppx_here ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ async async_ssl conduit uri ];
|
propagatedBuildInputs = [
|
||||||
|
async
|
||||||
|
async_ssl
|
||||||
|
conduit
|
||||||
|
uri
|
||||||
|
ipaddr
|
||||||
|
ipaddr-sexp
|
||||||
|
core
|
||||||
|
sexplib
|
||||||
|
];
|
||||||
|
|
||||||
meta = conduit.meta // {
|
meta = conduit.meta // {
|
||||||
description = "A network connection establishment library for Async";
|
description = "A network connection establishment library for Async";
|
||||||
|
|
|
@ -5,14 +5,14 @@
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "conduit";
|
pname = "conduit";
|
||||||
version = "4.0.0";
|
version = "4.0.1";
|
||||||
useDune2 = true;
|
useDune2 = true;
|
||||||
|
|
||||||
minimumOCamlVersion = "4.03";
|
minimumOCamlVersion = "4.03";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/mirage/ocaml-conduit/releases/download/v${version}/conduit-v${version}.tbz";
|
url = "https://github.com/mirage/ocaml-conduit/releases/download/v${version}/conduit-v${version}.tbz";
|
||||||
sha256 = "74b29d72bf47adc5d5c4cae6130ad5a2a4923118b9c571331bd1cb3c56decd2a";
|
sha256 = "500d95bf2a524f4851e94373e32d26b6e99ee04e5134db69fe6e151c3aad9b1f";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ ppx_sexp_conv ];
|
buildInputs = [ ppx_sexp_conv ];
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "cstruct";
|
pname = "cstruct";
|
||||||
version = "6.0.0";
|
version = "6.0.1";
|
||||||
|
|
||||||
useDune2 = true;
|
useDune2 = true;
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ buildDunePackage rec {
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-v${version}.tbz";
|
url = "https://github.com/mirage/ocaml-cstruct/releases/download/v${version}/cstruct-v${version}.tbz";
|
||||||
sha256 = "0xi6cj85z033fqrqdkwac6gg07629vzdhx03c3lhiwwc4lpnv8bq";
|
sha256 = "4a67bb8f042753453c59eabf0e47865631253ba694091ce6062aac05d47a9bed";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ bigarray-compat ];
|
propagatedBuildInputs = [ bigarray-compat ];
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{ lib, buildDunePackage, cstruct, sexplib, ppxlib, stdlib-shims
|
{ lib, buildDunePackage, cstruct, sexplib, ppxlib, stdlib-shims
|
||||||
, ounit, cppo, ppx_sexp_conv, cstruct-unix, cstruct-sexp
|
, ounit, cppo, ppx_sexp_conv, cstruct-unix, cstruct-sexp
|
||||||
, fetchpatch
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
if !lib.versionAtLeast (cstruct.version or "1") "3"
|
if !lib.versionAtLeast (cstruct.version or "1") "3"
|
||||||
|
@ -11,22 +10,10 @@ buildDunePackage {
|
||||||
pname = "ppx_cstruct";
|
pname = "ppx_cstruct";
|
||||||
inherit (cstruct) version src useDune2 meta;
|
inherit (cstruct) version src useDune2 meta;
|
||||||
|
|
||||||
minimumOCamlVersion = "4.07";
|
minimalOCamlVersion = "4.08";
|
||||||
|
|
||||||
# prevent ANSI escape sequences from messing up the test cases
|
|
||||||
# https://github.com/mirage/ocaml-cstruct/issues/283
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/mirage/ocaml-cstruct/pull/285/commits/60dfed98b4c34455bf339ac60e2ed5ef05feb48f.patch";
|
|
||||||
sha256 = "1x9i62nrlfy9l44vb0a7qjfrg2wyki4c8nmmqnzwpcbkgxi3q6n5";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ cstruct ppxlib sexplib stdlib-shims ];
|
propagatedBuildInputs = [ cstruct ppxlib sexplib stdlib-shims ];
|
||||||
|
|
||||||
# disable until ppx_sexp_conv uses ppxlib 0.20.0 (or >= 0.16.0)
|
doCheck = true;
|
||||||
# since the propagation of the older ppxlib breaks the ppx_cstruct
|
|
||||||
# build.
|
|
||||||
doCheck = false;
|
|
||||||
checkInputs = [ ounit cppo ppx_sexp_conv cstruct-sexp cstruct-unix ];
|
checkInputs = [ ounit cppo ppx_sexp_conv cstruct-sexp cstruct-unix ];
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,14 +8,14 @@
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "git";
|
pname = "git";
|
||||||
version = "3.4.0";
|
version = "3.5.0";
|
||||||
|
|
||||||
minimumOCamlVersion = "4.08";
|
minimumOCamlVersion = "4.08";
|
||||||
useDune2 = true;
|
useDune2 = true;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/mirage/ocaml-git/releases/download/${version}/git-${version}.tbz";
|
url = "https://github.com/mirage/ocaml-git/releases/download/${version}/git-${version}.tbz";
|
||||||
sha256 = "6eef1240c7c85a8e495b82ef863c509ad41d75e0c45cf73c34ed1bdafd03413f";
|
sha256 = "bcd5a0aef9957193cbaeeb17c22201e5ca4e815e67bbc696e88efdb38c25ec03";
|
||||||
};
|
};
|
||||||
|
|
||||||
# remove changelog for the carton package
|
# remove changelog for the carton package
|
||||||
|
|
|
@ -3,8 +3,6 @@
|
||||||
, mimic
|
, mimic
|
||||||
, paf
|
, paf
|
||||||
, ca-certs-nss
|
, ca-certs-nss
|
||||||
, cohttp
|
|
||||||
, cohttp-lwt
|
|
||||||
, fmt
|
, fmt
|
||||||
, ipaddr
|
, ipaddr
|
||||||
, logs
|
, logs
|
||||||
|
@ -16,6 +14,12 @@
|
||||||
, rresult
|
, rresult
|
||||||
, tls
|
, tls
|
||||||
, uri
|
, uri
|
||||||
|
, bigarray-compat
|
||||||
|
, bigstringaf
|
||||||
|
, domain-name
|
||||||
|
, httpaf
|
||||||
|
, mirage-flow
|
||||||
|
, tls-mirage
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildDunePackage {
|
buildDunePackage {
|
||||||
|
@ -28,8 +32,6 @@ buildDunePackage {
|
||||||
mimic
|
mimic
|
||||||
paf
|
paf
|
||||||
ca-certs-nss
|
ca-certs-nss
|
||||||
cohttp
|
|
||||||
cohttp-lwt
|
|
||||||
fmt
|
fmt
|
||||||
lwt
|
lwt
|
||||||
result
|
result
|
||||||
|
@ -41,6 +43,12 @@ buildDunePackage {
|
||||||
mirage-time
|
mirage-time
|
||||||
tls
|
tls
|
||||||
uri
|
uri
|
||||||
|
bigarray-compat
|
||||||
|
bigstringaf
|
||||||
|
domain-name
|
||||||
|
httpaf
|
||||||
|
mirage-flow
|
||||||
|
tls-mirage
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = git.meta // {
|
meta = git.meta // {
|
||||||
|
|
45
pkgs/development/ocaml-modules/letsencrypt/app.nix
Normal file
45
pkgs/development/ocaml-modules/letsencrypt/app.nix
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
{ lib
|
||||||
|
, buildDunePackage
|
||||||
|
, letsencrypt
|
||||||
|
, letsencrypt-dns
|
||||||
|
, cmdliner
|
||||||
|
, cohttp-lwt-unix
|
||||||
|
, logs
|
||||||
|
, fmt
|
||||||
|
, lwt
|
||||||
|
, mirage-crypto-rng
|
||||||
|
, ptime
|
||||||
|
, bos
|
||||||
|
, fpath
|
||||||
|
, randomconv
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildDunePackage {
|
||||||
|
pname = "letsencrypt-app";
|
||||||
|
|
||||||
|
inherit (letsencrypt)
|
||||||
|
src
|
||||||
|
version
|
||||||
|
useDune2
|
||||||
|
minimumOCamlVersion
|
||||||
|
;
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
letsencrypt
|
||||||
|
letsencrypt-dns
|
||||||
|
cmdliner
|
||||||
|
cohttp-lwt-unix
|
||||||
|
logs
|
||||||
|
fmt
|
||||||
|
lwt
|
||||||
|
mirage-crypto-rng
|
||||||
|
ptime
|
||||||
|
bos
|
||||||
|
fpath
|
||||||
|
randomconv
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = letsencrypt.meta // {
|
||||||
|
description = "An ACME client implementation of the ACME protocol (RFC 8555) for OCaml";
|
||||||
|
};
|
||||||
|
}
|
|
@ -6,11 +6,6 @@
|
||||||
, uri
|
, uri
|
||||||
, rresult
|
, rresult
|
||||||
, base64
|
, base64
|
||||||
, cmdliner
|
|
||||||
, cohttp
|
|
||||||
, cohttp-lwt
|
|
||||||
, cohttp-lwt-unix
|
|
||||||
, zarith
|
|
||||||
, logs
|
, logs
|
||||||
, fmt
|
, fmt
|
||||||
, lwt
|
, lwt
|
||||||
|
@ -20,38 +15,25 @@
|
||||||
, x509
|
, x509
|
||||||
, yojson
|
, yojson
|
||||||
, ounit
|
, ounit
|
||||||
, dns
|
|
||||||
, dns-tsig
|
|
||||||
, ptime
|
, ptime
|
||||||
, bos
|
|
||||||
, fpath
|
|
||||||
, randomconv
|
|
||||||
, domain-name
|
, domain-name
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "letsencrypt";
|
pname = "letsencrypt";
|
||||||
version = "0.2.5";
|
version = "0.3.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/mmaker/ocaml-letsencrypt/releases/download/v${version}/letsencrypt-v${version}.tbz";
|
url = "https://github.com/mmaker/ocaml-letsencrypt/releases/download/v${version}/letsencrypt-v${version}.tbz";
|
||||||
sha256 = "6e3bbb5f593823d49e83e698c06cf9ed48818695ec8318507b311ae74731e607";
|
sha256 = "8772b7e6dbda0559a03a7b23b75c1431d42ae09a154eefd64b4c7e23b8d92deb";
|
||||||
};
|
};
|
||||||
|
|
||||||
minimumOCamlVersion = "4.08";
|
minimumOCamlVersion = "4.08";
|
||||||
useDune2 = true;
|
useDune2 = true;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
cmdliner
|
|
||||||
cohttp
|
|
||||||
cohttp-lwt-unix
|
|
||||||
zarith
|
|
||||||
fmt
|
fmt
|
||||||
mirage-crypto-rng
|
|
||||||
ptime
|
ptime
|
||||||
bos
|
|
||||||
fpath
|
|
||||||
randomconv
|
|
||||||
domain-name
|
domain-name
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -65,11 +47,8 @@ buildDunePackage rec {
|
||||||
asn1-combinators
|
asn1-combinators
|
||||||
x509
|
x509
|
||||||
uri
|
uri
|
||||||
dns
|
|
||||||
dns-tsig
|
|
||||||
rresult
|
rresult
|
||||||
astring
|
astring
|
||||||
cohttp-lwt
|
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
35
pkgs/development/ocaml-modules/letsencrypt/dns.nix
Normal file
35
pkgs/development/ocaml-modules/letsencrypt/dns.nix
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
{ lib
|
||||||
|
, buildDunePackage
|
||||||
|
, letsencrypt
|
||||||
|
, logs
|
||||||
|
, fmt
|
||||||
|
, lwt
|
||||||
|
, dns
|
||||||
|
, dns-tsig
|
||||||
|
, domain-name
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildDunePackage {
|
||||||
|
pname = "letsencrypt-dns";
|
||||||
|
|
||||||
|
inherit (letsencrypt)
|
||||||
|
version
|
||||||
|
src
|
||||||
|
useDune2
|
||||||
|
minimumOCamlVersion
|
||||||
|
;
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
letsencrypt
|
||||||
|
dns
|
||||||
|
dns-tsig
|
||||||
|
domain-name
|
||||||
|
logs
|
||||||
|
lwt
|
||||||
|
fmt
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = letsencrypt.meta // {
|
||||||
|
description = "A DNS solver for the ACME implementation in OCaml";
|
||||||
|
};
|
||||||
|
}
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "macaddr";
|
pname = "macaddr";
|
||||||
version = "5.1.0";
|
version = "5.2.0";
|
||||||
|
|
||||||
useDune2 = true;
|
useDune2 = true;
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@ buildDunePackage rec {
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/mirage/ocaml-ipaddr/releases/download/v${version}/ipaddr-v${version}.tbz";
|
url = "https://github.com/mirage/ocaml-ipaddr/releases/download/v${version}/ipaddr-v${version}.tbz";
|
||||||
sha256 = "7e9328222c1a5f39b0751baecd7e27a842bdb0082fd48126eacbbad8816fbf5a";
|
sha256 = "f98d237cc1f783a0ba7dff0c6c69b5f519fec056950e3e3e7c15e5511ee5b7ec";
|
||||||
};
|
};
|
||||||
|
|
||||||
checkInputs = [ ppx_sexp_conv ounit ];
|
checkInputs = [ ppx_sexp_conv ounit ];
|
||||||
|
|
|
@ -1,9 +1,17 @@
|
||||||
{ buildDunePackage, mirage-block, io-page, logs }:
|
{ buildDunePackage, fetchpatch, mirage-block, io-page, logs }:
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "mirage-block-combinators";
|
pname = "mirage-block-combinators";
|
||||||
inherit (mirage-block) version src useDune2;
|
inherit (mirage-block) version src useDune2;
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
name = "cstruct-6.0.0-compat.patch";
|
||||||
|
url = "https://github.com/mirage/mirage-block/pull/49/commits/ff54105b21fb32d0d6977b419db0776e6c2ea166.patch";
|
||||||
|
sha256 = "0bwgypnsyn4d9b46q6r7kh5qfcy58db7krs6z5zw83hc7y20y2sd";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ mirage-block io-page logs ];
|
propagatedBuildInputs = [ mirage-block io-page logs ];
|
||||||
|
|
||||||
meta = mirage-block.meta // {
|
meta = mirage-block.meta // {
|
||||||
|
|
51
pkgs/development/ocaml-modules/paf/cohttp.nix
Normal file
51
pkgs/development/ocaml-modules/paf/cohttp.nix
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
{ lib
|
||||||
|
, buildDunePackage
|
||||||
|
, paf
|
||||||
|
, cohttp-lwt
|
||||||
|
, domain-name
|
||||||
|
, httpaf
|
||||||
|
, ipaddr
|
||||||
|
, alcotest-lwt
|
||||||
|
, fmt
|
||||||
|
, logs
|
||||||
|
, mirage-crypto-rng
|
||||||
|
, mirage-time-unix
|
||||||
|
, tcpip
|
||||||
|
, uri
|
||||||
|
, lwt
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildDunePackage {
|
||||||
|
pname = "paf-cohttp";
|
||||||
|
|
||||||
|
inherit (paf)
|
||||||
|
version
|
||||||
|
src
|
||||||
|
useDune2
|
||||||
|
minimumOCamlVersion
|
||||||
|
;
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
paf
|
||||||
|
cohttp-lwt
|
||||||
|
domain-name
|
||||||
|
httpaf
|
||||||
|
ipaddr
|
||||||
|
];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
checkInputs = [
|
||||||
|
alcotest-lwt
|
||||||
|
fmt
|
||||||
|
logs
|
||||||
|
mirage-crypto-rng
|
||||||
|
mirage-time-unix
|
||||||
|
tcpip
|
||||||
|
uri
|
||||||
|
lwt
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = paf.meta // {
|
||||||
|
description = "A CoHTTP client with its HTTP/AF implementation";
|
||||||
|
};
|
||||||
|
}
|
|
@ -4,7 +4,6 @@
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
, mirage-stack
|
, mirage-stack
|
||||||
, mirage-time
|
, mirage-time
|
||||||
, httpaf
|
|
||||||
, h2
|
, h2
|
||||||
, tls-mirage
|
, tls-mirage
|
||||||
, mimic
|
, mimic
|
||||||
|
@ -28,15 +27,16 @@
|
||||||
, ptime
|
, ptime
|
||||||
, uri
|
, uri
|
||||||
, alcotest-lwt
|
, alcotest-lwt
|
||||||
|
, cstruct
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "paf";
|
pname = "paf";
|
||||||
version = "0.0.3";
|
version = "0.0.5";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/dinosaure/paf-le-chien/releases/download/${version}/paf-${version}.tbz";
|
url = "https://github.com/dinosaure/paf-le-chien/releases/download/${version}/paf-${version}.tbz";
|
||||||
sha256 = "a0bbb84b19e1f0255337fc4d7017f3ea3611b241746e391b11c1d8b1f5f30a2b";
|
sha256 = "e85a018046eb062d2399fdbe8d9d3400a4d5cd51bb62840446503f557c3eeff1";
|
||||||
};
|
};
|
||||||
|
|
||||||
useDune2 = true;
|
useDune2 = true;
|
||||||
|
@ -45,7 +45,6 @@ buildDunePackage rec {
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
mirage-stack
|
mirage-stack
|
||||||
mirage-time
|
mirage-time
|
||||||
httpaf
|
|
||||||
h2
|
h2
|
||||||
tls-mirage
|
tls-mirage
|
||||||
mimic
|
mimic
|
||||||
|
@ -60,6 +59,7 @@ buildDunePackage rec {
|
||||||
faraday
|
faraday
|
||||||
tls
|
tls
|
||||||
x509
|
x509
|
||||||
|
cstruct
|
||||||
];
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
39
pkgs/development/ocaml-modules/paf/le.nix
Normal file
39
pkgs/development/ocaml-modules/paf/le.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{ lib
|
||||||
|
, buildDunePackage
|
||||||
|
, paf
|
||||||
|
, duration
|
||||||
|
, emile
|
||||||
|
, httpaf
|
||||||
|
, letsencrypt
|
||||||
|
, mirage-stack
|
||||||
|
, mirage-time
|
||||||
|
, tls-mirage
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildDunePackage {
|
||||||
|
pname = "paf-le";
|
||||||
|
|
||||||
|
inherit (paf)
|
||||||
|
version
|
||||||
|
src
|
||||||
|
useDune2
|
||||||
|
minimumOCamlVersion
|
||||||
|
;
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
paf
|
||||||
|
duration
|
||||||
|
emile
|
||||||
|
httpaf
|
||||||
|
letsencrypt
|
||||||
|
mirage-stack
|
||||||
|
mirage-time
|
||||||
|
tls-mirage
|
||||||
|
];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
|
meta = paf.meta // {
|
||||||
|
description = "A CoHTTP client with its HTTP/AF implementation";
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildDunePackage, tls, async, cstruct-async, core, cstruct, mirage-crypto-rng-async }:
|
{ lib, buildDunePackage, tls, async, cstruct-async, core, cstruct, mirage-crypto-rng-async, async_find }:
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "tls-async";
|
pname = "tls-async";
|
||||||
|
@ -12,6 +12,7 @@ buildDunePackage rec {
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
async
|
async
|
||||||
|
async_find
|
||||||
core
|
core
|
||||||
cstruct
|
cstruct
|
||||||
cstruct-async
|
cstruct-async
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
|
|
||||||
buildDunePackage rec {
|
buildDunePackage rec {
|
||||||
pname = "tls";
|
pname = "tls";
|
||||||
version = "0.13.2";
|
version = "0.14.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-v${version}.tbz";
|
url = "https://github.com/mirleft/ocaml-tls/releases/download/v${version}/tls-v${version}.tbz";
|
||||||
sha256 = "sha256-IE6Fuvem8A3lZ/M8GLNYNwCG+v7BbPQ4QdYS+fKT50c=";
|
sha256 = "58cf2d517d6eac5b1ccc5eeb656da690aef2125a19c1eca3fbececd858046216";
|
||||||
};
|
};
|
||||||
|
|
||||||
minimumOCamlVersion = "4.08";
|
minimumOCamlVersion = "4.08";
|
||||||
|
|
|
@ -8,11 +8,11 @@ buildDunePackage rec {
|
||||||
minimumOCamlVersion = "4.07";
|
minimumOCamlVersion = "4.07";
|
||||||
|
|
||||||
pname = "x509";
|
pname = "x509";
|
||||||
version = "0.14.0";
|
version = "0.14.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/mirleft/ocaml-x509/releases/download/v${version}/x509-v${version}.tbz";
|
url = "https://github.com/mirleft/ocaml-x509/releases/download/v${version}/x509-v${version}.tbz";
|
||||||
sha256 = "9b42f34171261b2193ee662f096566c48c48e087949c186c288f90c9b3b9f498";
|
sha256 = "d91eb4f2790f9d098713c71cc4b5d12706aedb1795666b5e6d667fe5c262f9c3";
|
||||||
};
|
};
|
||||||
|
|
||||||
useDune2 = true;
|
useDune2 = true;
|
||||||
|
|
|
@ -611,6 +611,10 @@ let
|
||||||
|
|
||||||
letsencrypt = callPackage ../development/ocaml-modules/letsencrypt { };
|
letsencrypt = callPackage ../development/ocaml-modules/letsencrypt { };
|
||||||
|
|
||||||
|
letsencrypt-app = callPackage ../development/ocaml-modules/letsencrypt/app.nix { };
|
||||||
|
|
||||||
|
letsencrypt-dns = callPackage ../development/ocaml-modules/letsencrypt/dns.nix { };
|
||||||
|
|
||||||
linenoise = callPackage ../development/ocaml-modules/linenoise { };
|
linenoise = callPackage ../development/ocaml-modules/linenoise { };
|
||||||
|
|
||||||
llvm = callPackage ../development/ocaml-modules/llvm {
|
llvm = callPackage ../development/ocaml-modules/llvm {
|
||||||
|
@ -990,6 +994,10 @@ let
|
||||||
|
|
||||||
paf = callPackage ../development/ocaml-modules/paf { };
|
paf = callPackage ../development/ocaml-modules/paf { };
|
||||||
|
|
||||||
|
paf-cohttp = callPackage ../development/ocaml-modules/paf/cohttp.nix { };
|
||||||
|
|
||||||
|
paf-le = callPackage ../development/ocaml-modules/paf/le.nix { };
|
||||||
|
|
||||||
parse-argv = callPackage ../development/ocaml-modules/parse-argv { };
|
parse-argv = callPackage ../development/ocaml-modules/parse-argv { };
|
||||||
|
|
||||||
path_glob = callPackage ../development/ocaml-modules/path_glob { };
|
path_glob = callPackage ../development/ocaml-modules/path_glob { };
|
||||||
|
|
Loading…
Reference in a new issue