depot/third_party/nixpkgs/pkgs/development/ocaml-modules/paf/default.nix
Default email 24fdeddc0a Project import generated by Copybara.
GitOrigin-RevId: 2768c7d042a37de65bb1b5b3268fc987e534c49d
2024-10-23 09:41:50 +03:00

70 lines
1 KiB
Nix

{ buildDunePackage
, lib
, fetchurl
, mirage-time
, h2
, tls-mirage
, mimic
, ke
, bigstringaf
, faraday
, tls
, lwt
, logs
, fmt
, mirage-crypto-rng
, tcpip
, mirage-time-unix
, ptime
, uri
, alcotest-lwt
, cstruct
, httpaf
}:
buildDunePackage rec {
pname = "paf";
version = "0.7.0";
src = fetchurl {
url = "https://github.com/dinosaure/paf-le-chien/releases/download/${version}/paf-${version}.tbz";
hash = "sha256-w2lGs+DYY08BUKumWFxPFTLQKvdRPu7H1FdQOIjDQyE=";
};
minimalOCamlVersion = "4.08";
propagatedBuildInputs = [
mirage-time
h2
tls-mirage
mimic
ke
bigstringaf
faraday
tls
cstruct
tcpip
httpaf
];
doCheck = true;
checkInputs = [
lwt
logs
fmt
mirage-crypto-rng
mirage-time-unix
ptime
uri
alcotest-lwt
];
__darwinAllowLocalNetworking = true;
meta = {
description = "HTTP/AF and MirageOS";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.sternenseemann ];
homepage = "https://github.com/dinosaure/paf-le-chien";
};
}