+31
-26
pkgs/development/ocaml-modules/piaf/default.nix
+31
-26
pkgs/development/ocaml-modules/piaf/default.nix
···
1
-
{ alcotest-lwt
1
+
{ alcotest
2
2
, buildDunePackage
3
-
, ocaml
4
-
, bigarray-compat
5
-
, dune-site
6
3
, fetchurl
7
-
, gluten-lwt-unix
4
+
, eio-ssl
5
+
, faraday
6
+
, h2-eio
7
+
, httpun-eio
8
+
, httpun-ws
9
+
, ipaddr
10
+
, ke
8
11
, lib
9
12
, logs
10
13
, magic-mime
11
-
, mrmime
12
-
, psq
13
-
, rresult
14
+
, pecu
15
+
, prettym
16
+
, unstrctrd
14
17
, uri
18
+
, uutf
19
+
, dune-site
20
+
, eio_main
15
21
}:
16
22
17
-
lib.throwIf (lib.versionAtLeast ocaml.version "5.0")
18
-
"piaf is not available for OCaml ${ocaml.version}"
19
-
20
23
buildDunePackage rec {
21
24
pname = "piaf";
22
-
version = "0.1.0";
25
+
version = "0.2.0";
23
26
24
27
src = fetchurl {
25
28
url = "https://github.com/anmonteiro/piaf/releases/download/${version}/piaf-${version}.tbz";
26
-
hash = "sha256-AMO+ptGox33Bi7u/H0SaeCU88XORrRU3UbLof3EwcmU=";
29
+
hash = "sha256-B/qQCaUvrqrm2GEW51AH9SebGFx7x8laq5RV8hBzcPs=";
27
30
};
28
31
29
-
postPatch = ''
30
-
substituteInPlace ./vendor/dune --replace "mrmime.prettym" "prettym"
31
-
'';
32
-
33
32
propagatedBuildInputs = [
34
-
bigarray-compat
33
+
eio-ssl
34
+
faraday
35
+
h2-eio
36
+
httpun-eio
37
+
httpun-ws
38
+
ipaddr
35
39
logs
36
40
magic-mime
37
-
mrmime
38
-
psq
39
-
rresult
41
+
pecu
42
+
prettym
43
+
unstrctrd
40
44
uri
41
-
gluten-lwt-unix
45
+
uutf
42
46
];
43
47
44
-
nativeCheckInputs = [
45
-
alcotest-lwt
48
+
# Some test cases fail
49
+
doCheck = false;
50
+
checkInputs = [
51
+
alcotest
46
52
dune-site
53
+
eio_main
47
54
];
48
-
# Check fails with OpenSSL 3
49
-
doCheck = false;
50
55
51
56
meta = {
52
57
description = "HTTP library with HTTP/2 support written entirely in OCaml";