Skip to content

Commit 75a6057

Browse files
committed
ocamlPackages.httpun-ws: init at 0.2.0
1 parent e2be410 commit 75a6057

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{ lib
2+
, fetchurl
3+
, buildDunePackage
4+
, angstrom
5+
, base64
6+
, bigstringaf
7+
, faraday
8+
, gluten
9+
, httpun
10+
, alcotest
11+
}:
12+
13+
buildDunePackage rec {
14+
pname = "httpun-ws";
15+
version = "0.2.0";
16+
17+
src = fetchurl {
18+
url = "https://github.com/anmonteiro/httpun-ws/releases/download/${version}/httpun-ws-${version}.tbz";
19+
hash = "sha256-6uDNLg61tPyctthitxFqbw/IUDsuQ5BGvw5vTLLCl/0=";
20+
};
21+
22+
propagatedBuildInputs = [
23+
angstrom
24+
base64
25+
bigstringaf
26+
faraday
27+
gluten
28+
httpun
29+
];
30+
31+
doCheck = true;
32+
checkInputs = [ alcotest ];
33+
34+
meta = {
35+
description = "Websocket implementation for httpun";
36+
license = lib.licenses.bsd3;
37+
homepage = "https://github.com/anmonteiro/httpun-ws";
38+
maintainers = [ lib.maintainers.vbgl ];
39+
};
40+
}

pkgs/top-level/ocaml-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,8 @@ let
697697

698698
httpun-types = callPackage ../development/ocaml-modules/httpun/types.nix { };
699699

700+
httpun-ws = callPackage ../development/ocaml-modules/httpun-ws { };
701+
700702
hxd = callPackage ../development/ocaml-modules/hxd { };
701703

702704
### I ###

0 commit comments

Comments
 (0)