libwebsockets: re-init 3.1
This commit is contained in:
parent
e19054ab3c
commit
b02b889255
@ -1,28 +1,47 @@
|
|||||||
{ fetchFromGitHub, stdenv, cmake, openssl, zlib, libuv }:
|
{ fetchFromGitHub, stdenv, cmake, openssl, zlib, libuv }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
let
|
||||||
pname = "libwebsockets";
|
generic = { version, sha256 }: stdenv.mkDerivation rec {
|
||||||
version = "3.2.0";
|
pname = "libwebsockets";
|
||||||
|
inherit version;
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "warmcat";
|
owner = "warmcat";
|
||||||
repo = "libwebsockets";
|
repo = "libwebsockets";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
|
inherit sha256;
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ openssl zlib libuv ];
|
||||||
|
|
||||||
|
nativeBuildInputs = [ cmake ];
|
||||||
|
|
||||||
|
cmakeFlags = [ "-DLWS_WITH_PLUGINS=ON" ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
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/";
|
||||||
|
license = licenses.lgpl21;
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
in
|
||||||
|
rec {
|
||||||
|
libwebsockets_3_1 = generic {
|
||||||
|
sha256 = "1w1wz6snf3cmcpa3f4dci2nz9za2f5rrylxl109id7bcb36xhbdl";
|
||||||
|
version = "3.1.0";
|
||||||
|
};
|
||||||
|
|
||||||
|
libwebsockets_3_2 = generic {
|
||||||
|
version = "3.2.0";
|
||||||
sha256 = "0ac5755h3w1pl6cznqbvg63dwkqy544fqlhvqyp7s11hgs7jx6l8";
|
sha256 = "0ac5755h3w1pl6cznqbvg63dwkqy544fqlhvqyp7s11hgs7jx6l8";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cmake openssl zlib libuv ];
|
libwebsockets = libwebsockets_3_2;
|
||||||
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://github.com/warmcat/libwebsockets;
|
|
||||||
license = stdenv.lib.licenses.lgpl21;
|
|
||||||
platforms = stdenv.lib.platforms.all;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
@ -4581,7 +4581,10 @@ in
|
|||||||
|
|
||||||
librest = callPackage ../development/libraries/librest { };
|
librest = callPackage ../development/libraries/librest { };
|
||||||
|
|
||||||
libwebsockets = callPackage ../development/libraries/libwebsockets { };
|
inherit (callPackages ../development/libraries/libwebsockets { })
|
||||||
|
libwebsockets_3_1
|
||||||
|
libwebsockets_3_2
|
||||||
|
libwebsockets;
|
||||||
|
|
||||||
lidarr = callPackage ../servers/lidarr { };
|
lidarr = callPackage ../servers/lidarr { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user