nixpkgs/pkgs/development/ocaml-modules/paf/default.nix
sterni c1e83d738d
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>
2021-09-29 14:28:09 +02:00

84 lines
1.2 KiB
Nix

{ buildDunePackage
, lib
, fetchurl
, fetchpatch
, mirage-stack
, mirage-time
, h2
, tls-mirage
, mimic
, cohttp-lwt
, letsencrypt
, emile
, ke
, bigstringaf
, domain-name
, duration
, faraday
, ipaddr
, tls
, x509
, lwt
, logs
, fmt
, mirage-crypto-rng
, tcpip
, mirage-time-unix
, ptime
, uri
, alcotest-lwt
, cstruct
}:
buildDunePackage rec {
pname = "paf";
version = "0.0.5";
src = fetchurl {
url = "https://github.com/dinosaure/paf-le-chien/releases/download/${version}/paf-${version}.tbz";
sha256 = "e85a018046eb062d2399fdbe8d9d3400a4d5cd51bb62840446503f557c3eeff1";
};
useDune2 = true;
minimumOCamlVersion = "4.08";
propagatedBuildInputs = [
mirage-stack
mirage-time
h2
tls-mirage
mimic
cohttp-lwt
letsencrypt
emile
ke
bigstringaf
domain-name
ipaddr
duration
faraday
tls
x509
cstruct
];
doCheck = true;
checkInputs = [
lwt
logs
fmt
mirage-crypto-rng
tcpip
mirage-time-unix
ptime
uri
alcotest-lwt
];
meta = {
description = "HTTP/AF and MirageOS";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.sternenseemann ];
homepage = "https://github.com/dinosaure/paf-le-chien";
};
}