2017-09-19 13:38:39 +00:00
|
|
|
{ fetchFromGitHub, stdenv, cmake, openssl, zlib, libuv }:
|
2015-09-13 18:49:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libwebsockets";
|
2019-08-19 18:26:29 +00:00
|
|
|
version = "3.2.0";
|
2015-09-13 18:49:13 +00:00
|
|
|
|
2017-09-19 13:38:39 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "warmcat";
|
|
|
|
repo = "libwebsockets";
|
|
|
|
rev = "v${version}";
|
2019-08-19 18:26:29 +00:00
|
|
|
sha256 = "0ac5755h3w1pl6cznqbvg63dwkqy544fqlhvqyp7s11hgs7jx6l8";
|
2015-09-13 18:49:13 +00:00
|
|
|
};
|
|
|
|
|
2017-09-20 01:48:25 +00:00
|
|
|
buildInputs = [ cmake openssl zlib libuv ];
|
2017-09-19 13:38:39 +00:00
|
|
|
cmakeFlags = [ "-DLWS_WITH_PLUGINS=ON" ];
|
2015-09-13 18:49:13 +00:00
|
|
|
|
|
|
|
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.
|
|
|
|
'';
|
2019-04-22 08:14:28 +00:00
|
|
|
homepage = https://github.com/warmcat/libwebsockets;
|
2017-09-19 20:14:42 +00:00
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2015-09-13 18:49:13 +00:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|