From d3f5461aef15ee94a0b01d7c93c3dfd55e266e02 Mon Sep 17 00:00:00 2001 From: Chetan Taralekar Date: Sun, 13 Sep 2015 13:49:13 -0500 Subject: [PATCH] Add libwebsockets package --- .../libraries/libwebsockets/default.nix | 27 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 29 insertions(+) create mode 100644 pkgs/development/libraries/libwebsockets/default.nix diff --git a/pkgs/development/libraries/libwebsockets/default.nix b/pkgs/development/libraries/libwebsockets/default.nix new file mode 100644 index 000000000000..7153748348ae --- /dev/null +++ b/pkgs/development/libraries/libwebsockets/default.nix @@ -0,0 +1,27 @@ +{ fetchgit, stdenv, cmake, openssl, zlib }: + +stdenv.mkDerivation rec { + name = "libwebsockets-1.4"; + + src = fetchgit { + url = "git://git.libwebsockets.org/libwebsockets"; + rev = "16fb0132cec0fcced29bce6d86eaf94a9beb9785"; + sha256 = "fa4c81f86dfc39211b78c53c804efc19e15b81ccb05e72699220bbed27204c7d"; + }; + + buildInputs = [ cmake openssl zlib ]; + + 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://libwebsockets.org/trac/libwebsockets; + # See http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/tree/LICENSE + license = stdenv.lib.licenses.gpl2Plus; + maintainers = [ ]; + platforms = stdenv.lib.platforms.all; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6cad94415d9a..361300b823cb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2147,6 +2147,8 @@ let librdmacm = callPackage ../development/libraries/librdmacm { }; + libwebsockets = callPackage ../development/libraries/libwebsockets { }; + limesurvey = callPackage ../servers/limesurvey { }; logcheck = callPackage ../tools/system/logcheck {