1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-17 02:14:36 +00:00
nixpkgs/pkgs/development/libraries/libevhtp/default.nix
Philip Potter 01eb385346 certificate-transparency: init at 2015-11-27
libevhtp: 1.2.10 -> 1.2.11

Package for certificate-transparency

This adds openssl support to libevent.  Libevent can be compiled without
openssl, in which case it just doesn't build the libevent_openssl
library.  However it seems simpler just to default to including openssl
support.

This bumps evhtp's version because 1.2.11 provides pkg-config
information which makes building certificate-transparency easier.

This has been tested with `doCheck = true;`.

Signed-off-by: Edward Tjörnhammar <ed@cflags.cc>
2015-11-29 15:01:22 +01:00

26 lines
644 B
Nix

{ stdenv, fetchFromGitHub, cmake, openssl, libevent }:
stdenv.mkDerivation rec {
name = "libevhtp-${version}";
version = "1.2.11";
src = fetchFromGitHub {
owner = "ellzey";
repo = "libevhtp";
rev = version;
sha256 = "1rlxdp8w4alcy5ryr7pmw5wi6hv7d64885wwbk1zxhvi64s4x4rg";
};
buildInputs = [ cmake openssl libevent ];
buildPhase = "cmake";
meta = with stdenv.lib; {
description = "A more flexible replacement for libevent's httpd API";
homepage = "https://github.com/ellzey/libevhtp";
license = licenses.bsd3;
maintainers = with maintainers; [ edwtjo ];
platforms = platforms.linux;
};
}