2017-09-19 06:38:39 -07:00
|
|
|
{ fetchFromGitHub, stdenv, cmake, openssl, zlib, libuv }:
|
2015-09-13 11:49:13 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-09-19 06:38:39 -07:00
|
|
|
name = "libwebsockets-${version}";
|
|
|
|
version = "2.3.0";
|
2015-09-13 11:49:13 -07:00
|
|
|
|
2017-09-19 06:38:39 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "warmcat";
|
|
|
|
repo = "libwebsockets";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1hv2b5r6sg42xnqhm4ysjvyiz3cqpfmwaqm33vpbx0k7arj4ixvy";
|
2015-09-13 11:49:13 -07:00
|
|
|
};
|
|
|
|
|
2017-09-19 18:48:25 -07:00
|
|
|
buildInputs = [ cmake openssl zlib libuv ];
|
2017-09-19 06:38:39 -07:00
|
|
|
cmakeFlags = [ "-DLWS_WITH_PLUGINS=ON" ];
|
2015-09-13 11:49:13 -07: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.
|
|
|
|
'';
|
|
|
|
homepage = https://libwebsockets.org/trac/libwebsockets;
|
2017-09-19 13:14:42 -07:00
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2015-09-13 11:49:13 -07:00
|
|
|
maintainers = [ ];
|
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|