221f93779d
Semi-automatic update. These checks were performed: - built on NixOS - found 2.4.1 with grep in /nix/store/lm20nl7bdr3fmnagp48b4a7pjagv5qdf-libwebsockets-2.4.1 - found 2.4.1 in filename of file in /nix/store/lm20nl7bdr3fmnagp48b4a7pjagv5qdf-libwebsockets-2.4.1 cc ""
29 lines
852 B
Nix
29 lines
852 B
Nix
{ fetchFromGitHub, stdenv, cmake, openssl, zlib, libuv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libwebsockets-${version}";
|
|
version = "2.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "warmcat";
|
|
repo = "libwebsockets";
|
|
rev = "v${version}";
|
|
sha256 = "0d3xqdq3hpk5l9cg4dqkba6jm6620y6knqqywya703662spmj2xw";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|