2018-11-05 02:01:48 +00:00
|
|
|
{ stdenv, fetchurl }:
|
2013-05-23 21:58:23 +01:00
|
|
|
|
|
|
|
let
|
2019-04-15 00:56:09 +01:00
|
|
|
version = "2.9.1";
|
2013-05-23 21:58:23 +01:00
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "http-parser-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/joyent/http-parser/archive/v${version}.tar.gz";
|
2019-04-15 00:56:09 +01:00
|
|
|
sha256 = "08fypqh3jkwvlznvmwwwir53ffg2xcxy0v8bjz6wxjlb41qhf8ik";
|
2013-05-23 21:58:23 +01:00
|
|
|
};
|
|
|
|
|
2018-11-05 02:01:48 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error";
|
2013-05-23 21:58:23 +01:00
|
|
|
patches = [ ./build-shared.patch ];
|
2018-11-05 02:01:48 +00:00
|
|
|
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ];
|
|
|
|
buildFlags = "library";
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
2013-05-23 21:58:23 +01:00
|
|
|
|
2018-11-05 02:01:48 +00:00
|
|
|
meta = with stdenv.lib; {
|
2013-05-23 21:58:23 +01:00
|
|
|
description = "An HTTP message parser written in C";
|
|
|
|
homepage = https://github.com/joyent/http-parser;
|
2018-11-05 02:01:48 +00:00
|
|
|
maintainers = with maintainers; [ matthewbauer ];
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
2013-05-23 21:58:23 +01:00
|
|
|
};
|
|
|
|
}
|