2017-09-19 15:38:39 +02:00
|
|
|
{ fetchFromGitHub, stdenv, cmake, openssl, zlib, libuv }:
|
2015-09-13 20:49:13 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-09-19 15:38:39 +02:00
|
|
|
name = "libwebsockets-${version}";
|
2018-09-21 01:03:24 +02:00
|
|
|
version = "3.0.1";
|
2015-09-13 20:49:13 +02:00
|
|
|
|
2017-09-19 15:38:39 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "warmcat";
|
|
|
|
repo = "libwebsockets";
|
|
|
|
rev = "v${version}";
|
2018-09-21 01:03:24 +02:00
|
|
|
sha256 = "1x3qrz2hqsrv2lg0y9irdx37c8r9j9vf9mwzgw61znzvk6hc9ymq";
|
2015-09-13 20:49:13 +02:00
|
|
|
};
|
|
|
|
|
2017-09-20 03:48:25 +02:00
|
|
|
buildInputs = [ cmake openssl zlib libuv ];
|
2017-09-19 15:38:39 +02:00
|
|
|
cmakeFlags = [ "-DLWS_WITH_PLUGINS=ON" ];
|
2015-09-13 20:49:13 +02: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.
|
|
|
|
'';
|
2018-09-02 20:28:24 +02:00
|
|
|
homepage = https://libwebsockets.org;
|
2017-09-19 22:14:42 +02:00
|
|
|
license = stdenv.lib.licenses.lgpl21;
|
2015-09-13 20:49:13 +02:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|