blob: 3bc04f9ae3db1653f67ae9002c6a92c33e56a3ad (
plain) (
blame)
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
|
{ fetchFromGitHub, stdenv, cmake, openssl, zlib, libuv }:
stdenv.mkDerivation rec {
name = "libwebsockets-${version}";
version = "2.4.2";
src = fetchFromGitHub {
owner = "warmcat";
repo = "libwebsockets";
rev = "v${version}";
sha256 = "0gbprzsi054f9gr31ihcf0cq7zfkybrmdp6894pmzb5hcv4wnh9i";
};
buildInputs = [ cmake openssl zlib libuv ];
cmakeFlags = [ "-DLWS_WITH_PLUGINS=ON" ];
meta = {
description = "Light, portable C library for websockets";
longDescription = ''
Libwebsockets is a lightweight pure C library built to
use minimal CPU and memory resources, and provide fast
throughput in both directions.
'';
homepage = https://libwebsockets.org/trac/libwebsockets;
license = stdenv.lib.licenses.lgpl21;
maintainers = [ ];
platforms = stdenv.lib.platforms.all;
};
}
|