diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libwebsockets')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libwebsockets/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libwebsockets/default.nix b/nixpkgs/pkgs/development/libraries/libwebsockets/default.nix new file mode 100644 index 000000000000..7c1d58d2980f --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libwebsockets/default.nix @@ -0,0 +1,28 @@ +{ fetchFromGitHub, stdenv, cmake, openssl, zlib, libuv }: + +stdenv.mkDerivation rec { + name = "libwebsockets-${version}"; + version = "3.1.0"; + + src = fetchFromGitHub { + owner = "warmcat"; + repo = "libwebsockets"; + rev = "v${version}"; + sha256 = "1w1wz6snf3cmcpa3f4dci2nz9za2f5rrylxl109id7bcb36xhbdl"; + }; + + 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://github.com/warmcat/libwebsockets; + license = stdenv.lib.licenses.lgpl21; + platforms = stdenv.lib.platforms.all; + }; +} |