2024-09-24 18:33:56 +00:00
|
|
|
{
|
|
|
|
alcotest,
|
2021-10-25 22:26:52 +00:00
|
|
|
buildDunePackage,
|
2023-01-19 06:51:34 +00:00
|
|
|
fetchurl,
|
2024-09-24 18:33:56 +00:00
|
|
|
eio-ssl,
|
|
|
|
faraday,
|
|
|
|
h2-eio,
|
|
|
|
httpun-eio,
|
|
|
|
httpun-ws,
|
|
|
|
ipaddr,
|
|
|
|
ke,
|
2021-10-25 22:26:52 +00:00
|
|
|
lib,
|
|
|
|
logs,
|
|
|
|
magic-mime,
|
2024-09-24 18:33:56 +00:00
|
|
|
pecu,
|
|
|
|
prettym,
|
|
|
|
unstrctrd,
|
2021-10-25 22:26:52 +00:00
|
|
|
uri,
|
2024-09-24 18:33:56 +00:00
|
|
|
uutf,
|
|
|
|
dune-site,
|
|
|
|
eio_main,
|
2021-10-25 22:26:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDunePackage rec {
|
|
|
|
pname = "piaf";
|
2024-09-24 18:33:56 +00:00
|
|
|
version = "0.2.0";
|
2021-10-25 22:26:52 +00:00
|
|
|
|
2023-01-19 06:51:34 +00:00
|
|
|
src = fetchurl {
|
2021-10-25 22:26:52 +00:00
|
|
|
url = "https://github.com/anmonteiro/piaf/releases/download/${version}/piaf-${version}.tbz";
|
2024-09-24 18:33:56 +00:00
|
|
|
hash = "sha256-B/qQCaUvrqrm2GEW51AH9SebGFx7x8laq5RV8hBzcPs=";
|
2021-10-25 22:26:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2024-09-24 18:33:56 +00:00
|
|
|
eio-ssl
|
|
|
|
faraday
|
|
|
|
h2-eio
|
|
|
|
httpun-eio
|
|
|
|
httpun-ws
|
|
|
|
ipaddr
|
2021-10-25 22:26:52 +00:00
|
|
|
logs
|
|
|
|
magic-mime
|
2024-09-24 18:33:56 +00:00
|
|
|
pecu
|
|
|
|
prettym
|
|
|
|
unstrctrd
|
2021-10-25 22:26:52 +00:00
|
|
|
uri
|
2024-09-24 18:33:56 +00:00
|
|
|
uutf
|
2021-10-25 22:26:52 +00:00
|
|
|
];
|
|
|
|
|
2024-09-24 18:33:56 +00:00
|
|
|
# Some test cases fail
|
|
|
|
doCheck = false;
|
|
|
|
checkInputs = [
|
|
|
|
alcotest
|
2021-10-25 22:26:52 +00:00
|
|
|
dune-site
|
2024-09-24 18:33:56 +00:00
|
|
|
eio_main
|
2021-10-25 22:26:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "HTTP library with HTTP/2 support written entirely in OCaml";
|
|
|
|
homepage = "https://github.com/anmonteiro/piaf";
|
|
|
|
license = lib.licenses.bsd3;
|
2021-11-03 00:38:27 +00:00
|
|
|
maintainers = with lib.maintainers; [ anmonteiro ];
|
2021-10-25 22:26:52 +00:00
|
|
|
};
|
|
|
|
}
|