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