mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 05:33:23 +00:00
efecda5112
ocamlPackages.gluten: 0.2.1 → 0.3.0
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ alcotest-lwt
|
|
, buildDunePackage
|
|
, ocaml
|
|
, dune-site
|
|
, fetchurl
|
|
, gluten-lwt-unix
|
|
, lib
|
|
, logs
|
|
, lwt_ssl
|
|
, magic-mime
|
|
, mrmime
|
|
, pecu
|
|
, psq
|
|
, ssl
|
|
, uri
|
|
}:
|
|
|
|
lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
|
|
"piaf is not available for OCaml ${ocaml.version}"
|
|
|
|
buildDunePackage rec {
|
|
pname = "piaf";
|
|
version = "0.1.0";
|
|
|
|
duneVersion = "3";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/anmonteiro/piaf/releases/download/${version}/piaf-${version}.tbz";
|
|
hash = "sha256-AMO+ptGox33Bi7u/H0SaeCU88XORrRU3UbLof3EwcmU=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace ./vendor/dune --replace "mrmime.prettym" "prettym"
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
logs
|
|
magic-mime
|
|
mrmime
|
|
psq
|
|
uri
|
|
gluten-lwt-unix
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
alcotest-lwt
|
|
dune-site
|
|
];
|
|
# Check fails with OpenSSL 3
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "An HTTP library with HTTP/2 support written entirely in OCaml";
|
|
homepage = "https://github.com/anmonteiro/piaf";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ anmonteiro ];
|
|
};
|
|
}
|