2019-04-23 05:50:40 +01:00
|
|
|
{ stdenv, fetchFromGitHub }:
|
2013-05-23 21:58:23 +01:00
|
|
|
|
|
|
|
let
|
2019-04-23 05:50:40 +01:00
|
|
|
version = "2.9.2";
|
2013-05-23 21:58:23 +01:00
|
|
|
in stdenv.mkDerivation {
|
2019-08-13 22:52:01 +01:00
|
|
|
pname = "http-parser";
|
|
|
|
inherit version;
|
2013-05-23 21:58:23 +01:00
|
|
|
|
2019-04-23 05:50:40 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nodejs";
|
|
|
|
repo = "http-parser";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1qs6x3n2nrcj1wiik5pg5i16inykf7rcfdfdy7rwyzf40pvdl3c2";
|
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";
|
2019-04-23 05:50:40 +01:00
|
|
|
homepage = https://github.com/nodejs/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
|
|
|
};
|
|
|
|
}
|