1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/libwebsockets/default.nix

29 lines
810 B
Nix
Raw Normal View History

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