nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 fetchFromGitHub,
3 buildDunePackage,
4 lib,
5 logs,
6 miou,
7 fmt,
8 h2,
9 h1,
10 ca-certs,
11 bstr,
12 tls-miou-unix,
13 dns-client-miou-unix,
14 happy-eyeballs-miou-unix,
15 mirage-crypto-rng-miou-unix,
16 alcotest,
17 digestif,
18}:
19
20buildDunePackage (finalAttrs: {
21 pname = "httpcats";
22 version = "0.1.0";
23
24 src = fetchFromGitHub {
25 owner = "robur-coop";
26 repo = "httpcats";
27 tag = "v${finalAttrs.version}";
28 hash = "sha256-t3gSfv73XYntle1dd4k9bv893pGStk1NHz62mAvcHAs=";
29 };
30
31 propagatedBuildInputs = [
32 h2
33 h1
34 ca-certs
35 bstr
36 tls-miou-unix
37 dns-client-miou-unix
38 happy-eyeballs-miou-unix
39 ];
40
41 doCheck = true;
42 checkInputs = [
43 logs
44 fmt
45 mirage-crypto-rng-miou-unix
46 alcotest
47 digestif
48 ];
49
50 meta = {
51 inherit (finalAttrs.src.meta) homepage;
52 description = "A simple HTTP client / server using h1, h2, and miou";
53 changelog = "https://github.com/robur-coop/httpcats/blob/${finalAttrs.src.tag}/CHANGES.md";
54 license = lib.licenses.bsd3;
55 maintainers = with lib.maintainers; [ rpqt ];
56 };
57})