depot/third_party/nixpkgs/pkgs/development/ocaml-modules/paf/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

70 lines
1 KiB
Nix

{ buildDunePackage
, lib
, fetchurl
, fetchpatch
, mirage-stack
, 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
}:
buildDunePackage rec {
pname = "paf";
version = "0.3.0";
src = fetchurl {
url = "https://github.com/dinosaure/paf-le-chien/releases/download/${version}/paf-${version}.tbz";
sha256 = "sha256-+RkrmWJJREHg8BBdNe92vYhd2/Frvs7l5qOr9jBwymU=";
};
minimalOCamlVersion = "4.08";
duneVersion = "3";
propagatedBuildInputs = [
mirage-stack
mirage-time
h2
tls-mirage
mimic
ke
bigstringaf
faraday
tls
cstruct
tcpip
];
doCheck = true;
checkInputs = [
lwt
logs
fmt
mirage-crypto-rng
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";
};
}