1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
{
fetchpatch2,
fetchzip,
buildDunePackage,
lib,
logs,
fmt,
h2,
h1,
ca-certs,
bstr,
tls-miou-unix,
dns-client-miou-unix,
happy-eyeballs-miou-unix,
mirage-crypto-rng-miou-unix,
alcotest,
digestif,
}:
buildDunePackage (finalAttrs: {
pname = "httpcats";
version = "0.2.1";
src = fetchzip {
url = "https://github.com/robur-coop/httpcats/releases/download/v${finalAttrs.version}/httpcats-${finalAttrs.version}.tbz";
hash = "sha256-ehtwxQGHw8igzI0dy2Zzs+VOqvck/tAUuuJl+jSpVU8=";
};
patches = [
(fetchpatch2 {
url = "https://github.com/robur-coop/httpcats/commit/d8787555d4831e0488780d42bd2c65de662d1d38.patch";
hash = "sha256-6zXPb+mvw2rcEMv28b0npcL8cKl3CASxDbl7FOAGsXs=";
})
];
propagatedBuildInputs = [
h2
h1
ca-certs
bstr
tls-miou-unix
dns-client-miou-unix
happy-eyeballs-miou-unix
];
__darwinAllowLocalNetworking = true;
doCheck = true;
checkInputs = [
logs
fmt
mirage-crypto-rng-miou-unix
alcotest
digestif
];
meta = {
homepage = "https://github.com/robur-coop/httpcats/";
description = "A simple HTTP client / server using h1, h2, and miou";
changelog = "https://github.com/robur-coop/httpcats/blob/v${finalAttrs.version}/CHANGES.md";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ rpqt ];
};
})
|