forked from mirrors/nixpkgs
5f41c98f89
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/libwebsockets/versions. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - found 3.0.0 with grep in /nix/store/m8jcyxq9zxn19vzwmvy8jld4kmjcwnmj-libwebsockets-3.0.0 - directory tree listing: https://gist.github.com/3fda3b4331b75bec575d1a71ba21e84a
30 lines
852 B
Nix
30 lines
852 B
Nix
{ fetchFromGitHub, stdenv, cmake, openssl, zlib, libuv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "libwebsockets-${version}";
|
|
version = "3.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "warmcat";
|
|
repo = "libwebsockets";
|
|
rev = "v${version}";
|
|
sha256 = "0cz4f05qd9b2bm27h5pkwym2cl7ff73lgirzwjppwf9b18if58yv";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|