summary refs log tree commit diff
path: root/pkgs/development/libraries/libwebsockets
diff options
context:
space:
mode:
authorvolth <volth@webmaster.ms>2017-09-19 13:38:39 +0000
committerJörg Thalheim <joerg@thalheim.io>2017-09-19 20:30:51 +0100
commit4916f64948ae0c8fc7a1e0187c6305f90ffa88e0 (patch)
tree61990a91e70c88e8b3a6c44306092b6813e195c8 /pkgs/development/libraries/libwebsockets
parent28a53c8a08a1f72b89bc93825dfbfd92a9777c01 (diff)
downloadnixpkgs-4916f64948ae0c8fc7a1e0187c6305f90ffa88e0.tar
nixpkgs-4916f64948ae0c8fc7a1e0187c6305f90ffa88e0.tar.gz
nixpkgs-4916f64948ae0c8fc7a1e0187c6305f90ffa88e0.tar.bz2
nixpkgs-4916f64948ae0c8fc7a1e0187c6305f90ffa88e0.tar.lz
nixpkgs-4916f64948ae0c8fc7a1e0187c6305f90ffa88e0.tar.xz
nixpkgs-4916f64948ae0c8fc7a1e0187c6305f90ffa88e0.tar.zst
nixpkgs-4916f64948ae0c8fc7a1e0187c6305f90ffa88e0.zip
libwebsockets: 1.4 -> 2.3.0
Diffstat (limited to 'pkgs/development/libraries/libwebsockets')
-rw-r--r--pkgs/development/libraries/libwebsockets/default.nix19
1 files changed, 11 insertions, 8 deletions
diff --git a/pkgs/development/libraries/libwebsockets/default.nix b/pkgs/development/libraries/libwebsockets/default.nix
index 6ce18388904..dbcbf550c13 100644
--- a/pkgs/development/libraries/libwebsockets/default.nix
+++ b/pkgs/development/libraries/libwebsockets/default.nix
@@ -1,15 +1,19 @@
-{ fetchgit, stdenv, cmake, openssl, zlib }:
+{ fetchFromGitHub, stdenv, cmake, openssl, zlib, libuv }:
 
 stdenv.mkDerivation rec {
-  name = "libwebsockets-1.4";
+  name = "libwebsockets-${version}";
+  version = "2.3.0";
 
-  src = fetchgit {
-    url = "git://git.libwebsockets.org/libwebsockets";
-    rev = "16fb0132cec0fcced29bce6d86eaf94a9beb9785";
-    sha256 = "0gk4dgx125nz7wl59bx0kgxxg261r9kyxvdff5ld98slr9f08d0l";
+  src = fetchFromGitHub {
+    owner = "warmcat";
+    repo = "libwebsockets";
+    rev = "v${version}";
+    sha256 = "1hv2b5r6sg42xnqhm4ysjvyiz3cqpfmwaqm33vpbx0k7arj4ixvy";
   };
 
   buildInputs = [ cmake openssl zlib ];
+  propagatedBuildInputs = [ libuv ];
+  cmakeFlags = [ "-DLWS_WITH_PLUGINS=ON" ];
 
   meta = {
     description = "Light, portable C library for websockets";
@@ -19,8 +23,7 @@ stdenv.mkDerivation rec {
       throughput in both directions.
     '';
     homepage = https://libwebsockets.org/trac/libwebsockets;
-    # See http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/tree/LICENSE
-    license = stdenv.lib.licenses.gpl2Plus;
+    license = stdenv.lib.licenses.lgpl;
     maintainers = [ ];
     platforms = stdenv.lib.platforms.all;
   };