Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 29 lines 852 B view raw
1{ fetchFromGitHub, stdenv, cmake, openssl, zlib, libuv }: 2 3stdenv.mkDerivation rec { 4 name = "libwebsockets-${version}"; 5 version = "2.4.1"; 6 7 src = fetchFromGitHub { 8 owner = "warmcat"; 9 repo = "libwebsockets"; 10 rev = "v${version}"; 11 sha256 = "0d3xqdq3hpk5l9cg4dqkba6jm6620y6knqqywya703662spmj2xw"; 12 }; 13 14 buildInputs = [ cmake openssl zlib libuv ]; 15 cmakeFlags = [ "-DLWS_WITH_PLUGINS=ON" ]; 16 17 meta = { 18 description = "Light, portable C library for websockets"; 19 longDescription = '' 20 Libwebsockets is a lightweight pure C library built to 21 use minimal CPU and memory resources, and provide fast 22 throughput in both directions. 23 ''; 24 homepage = https://libwebsockets.org/trac/libwebsockets; 25 license = stdenv.lib.licenses.lgpl21; 26 maintainers = [ ]; 27 platforms = stdenv.lib.platforms.all; 28 }; 29}